tag:blogger.com,1999:blog-1392831648878588806.post5235278480814805209..comments2022-04-27T19:46:55.651+03:00Comments on The Itinerant Developer: Transparent graphics with pure GDI (Part 1)Davehttp://www.blogger.com/profile/05039004653244724673noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-1392831648878588806.post-52948479787059395992014-05-16T18:25:41.369+03:002014-05-16T18:25:41.369+03:00I'm trying to figure out how to draw a TPictur...I'm trying to figure out how to draw a TPicture that contains a MetaFile (WMF or EMF) picture with transparency onto this canvas. If you have a chance, can you look at what I did?<br /><br />http://stackoverflow.com/questions/23698506/how-can-i-draw-a-tpicture-onto-ttransparentcanvas#comment36415021_23698506Warrenhttps://www.blogger.com/profile/04053407632823479165noreply@blogger.comtag:blogger.com,1999:blog-1392831648878588806.post-74747752929580501162011-10-20T19:09:19.371+03:002011-10-20T19:09:19.371+03:00After re-reading your article I replaced my "...After re-reading your article I replaced my "FrontBMP" for rectangular selections with a 1x1 bitmap and the drawing has sped up a gazillion times. (Obvious in hindsight :-)) I still have to revisit the non-rectangular situation. Thanks again!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1392831648878588806.post-72419890223414796402011-10-14T12:26:48.213+03:002011-10-14T12:26:48.213+03:00Thanks! I recently implemented a non-rectangular s...Thanks! I recently implemented a non-rectangular selection similar to your code but it's rather slow. Hopefully I can make use of this TTransparentCanvas class to make it faster. :-)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1392831648878588806.post-3991290278234989192011-10-14T12:05:47.922+03:002011-10-14T12:05:47.922+03:00Thanks guys! Glad you like it.
GDI+ is great, an...Thanks guys! Glad you like it.<br /><br />GDI+ is great, and I've used it quite a bit. That library looks like an excellent translation too. I've found GDI+ can be very slow though - even on XP, it was only hardware-accelerated under some circumstances, and I think on Vista it never was at all.<br /><br />My theory with GDI is that, although what you can achieve is slightly more limited Davehttps://www.blogger.com/profile/05039004653244724673noreply@blogger.comtag:blogger.com,1999:blog-1392831648878588806.post-39745712204023428682011-10-14T11:38:54.832+03:002011-10-14T11:38:54.832+03:00Great article .. congrats !
For the ones looking ...Great article .. congrats !<br /><br />For the ones looking into GDI+ you may consider the FREE Mitov's IGDIPlus library (from 5.0 with XE2 support) that simplify a lot the GDI+ functionality into a very Delphi-friendly way (a great usecase of interfaces also): <a href="http://www.mitov.com/products/igdi+" rel="nofollow">http://www.mitov.com/products/igdi+</a>Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1392831648878588806.post-84163259806050223422011-10-13T21:43:35.149+03:002011-10-13T21:43:35.149+03:00Thanks! This is very useful. Looking forward to pa...Thanks! This is very useful. Looking forward to part two.Anonymousnoreply@blogger.com