Please help.
I am using VB6 and an ImageList object to contain some GIF files with transparency. I used the DisplayFromStdPicture method to load from the imagelist to the GDViewer object. However, the transparency is not being respected. Instead, the original transparent color of that GIF file is being shown.
Please assist.
Thanks.
Transparency problem with DisplayFromStdPicture
Hi,
This behaviour come from a gdi+ methods which can't get the original color depth of a Picture object coming from a vb6 control...
However, you can use a vb6 function to save the your picture object to a temporary image file:
After, you have just to load the saved image using the DisplayFromFile() methods.
Best regards,
Loïc
This behaviour come from a gdi+ methods which can't get the original color depth of a Picture object coming from a vb6 control...
However, you can use a vb6 function to save the your picture object to a temporary image file:
Code: Select all
Call SavePicture(Image1.Picture, "c:\temp\tmp.gif")
Best regards,
Loïc
Who is online
Users browsing this forum: No registered users and 2 guests