G
Glyn Meek
I have a routine which uses the GDI to display an image using '.DrawImage'.
Sections of the image have been made transparent using '.MakeTransparent'.
Everything works well...
....BUT, I later need to replace the original image with a second image, also
with some transparent sections and cannot seem to find a way to do this. If
I merely use 'DrawImage to write the new image, sections of the old image
show through where the new image is transparent.
I have tried putting both images in Rectangles, and manipulating the
rectangles, but this doesn't seem to work either.
I tried to find a way to capture (and then restore) the original background
on the screen before the first image was drawn, but is BitBlt the only way
to do this?
Any GDI experts out there that can give me a hint as to how to get rid of
the original image altogether? or do I need to dive into the arcane world of
BitBlt, and if so, anyone got a good reference?
Regards
Glyn J Meek
Sections of the image have been made transparent using '.MakeTransparent'.
Everything works well...
....BUT, I later need to replace the original image with a second image, also
with some transparent sections and cannot seem to find a way to do this. If
I merely use 'DrawImage to write the new image, sections of the old image
show through where the new image is transparent.
I have tried putting both images in Rectangles, and manipulating the
rectangles, but this doesn't seem to work either.
I tried to find a way to capture (and then restore) the original background
on the screen before the first image was drawn, but is BitBlt the only way
to do this?
Any GDI experts out there that can give me a hint as to how to get rid of
the original image altogether? or do I need to dive into the arcane world of
BitBlt, and if so, anyone got a good reference?
Regards
Glyn J Meek