EFileTahi-A Posted February 4, 2007 Posted February 4, 2007 I can crop them easly but the minute I draw it back it becomes opaque :( Bitmap bitSize = new Bitmap(32, 32); Image pic = Bitmap.FromFile(sCurrentFile,true); Graphics g = Graphics.FromImage(bitSize); g.DrawImage(pic, dstRectangle, srcRectangle, GraphicsUnit.Pixel) ; I really don't know how to make it working, I think when I load the image to the Bitmap object it simply looses its tranparency alpha channel, no? Quote
Leaders snarfblam Posted February 4, 2007 Leaders Posted February 4, 2007 Try explicitly specifying an ARGB format in the Bitmap constructor . If that doesn't work, try setting the compositing mode of the graphics object to CompositingMode.SourceCopy. The default is SourceOver, which performs an alpha blend. SourceCopy copies the alpha data instead of blending it. Quote [sIGPIC]e[/sIGPIC]
EFileTahi-A Posted February 4, 2007 Author Posted February 4, 2007 Oh.. I made it... Actually I was begin stupid. It works now, even without using your methods... Thanks anyway Marble :) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.