DrawImage

G

Guest

I don't know whether this item should go here but I can't find out where it
should go.

I have a custom control that draws icons at various locations on the form.
When I use an 8 bit icon then I'm ok but when I use a 32bit Icon with Alpha
blending then it seems ok until I do something else then when GDI tries to
draw the image it throws a NullReferenceException. The code is a bit
complicated to put here but the painting part seems relativly straight
forward.

If anyone has had something similar then I'm willing to try anything to get
it working correctly, only it looks rubbish with the 8 bit Icons a great with
the 32-bit ones.
 
G

Guest

OK, I've found out a bit more, GdipDrawImageRectRectI is actually destroying
the graphics object within it. Surely it's not supposed to do that?

I read around a bit and some places say that this is a graphics card thing
but surely that's not true?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top