Groups | Blog | Home
all groups > dotnet drawing api > december 2003 >

dotnet drawing api : Loosing graphics reference


Crirus
12/30/2003 6:16:26 PM
I have a bitmap and a graphics object wraped on it
When I use MakeTransparent on the bitmap, the graphics object dont draw on
it anymore.. I have to recreate the graphics from the bitmap.

Anyone can explain this?

Thank, Crirus

JHornick NO[at]SPAM online.microsoft.com
12/30/2003 6:30:14 PM
Hi,

[quoted text, click to view]


MakeTransparent() causes the Bitmap to be recreated. My guess is
that GDI+ is still drawing on the old bitmap, to which you no
longer have a reference.

Thanks,
- John
Microsoft Developer Support
This posting is provided "AS IS" with no warranties, and confers no rights.
Visit http://www.microsoft.com/security for current information on security.
Crirus
12/31/2003 12:04:36 PM
Yeah,, that explain either why MakeTransparent is not as fast as I whould
like to..
Anyway this is a stupid behaviour in my oppinion


[quoted text, click to view]

AddThis Social Bookmark Button