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 don't think this is
doable, and if it is I cannot find how to do it in the literature.
Any GDI experts out there that can give me a hint as to how to get rid of
the original image altogether? I can't just overwrite it with an image of
the background color (unless I can capture it in realtime before I start
drawing) as this may vary (particularly under XP where the background screen
has gradients)
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 don't think this is
doable, and if it is I cannot find how to do it in the literature.
Any GDI experts out there that can give me a hint as to how to get rid of
the original image altogether? I can't just overwrite it with an image of
the background color (unless I can capture it in realtime before I start
drawing) as this may vary (particularly under XP where the background screen
has gradients)
Regards
Glyn J Meek