Started by XDCAD ·
2012-08-24 09:17 UTC ·
2 replies · SMF topic #1876
XDCAD
2012-08-24 09:17 UTC
HI,ALL.
I make the background transparent PNG files, can be loaded into the OPENDCL elevation background is black, excuse me, how to make a PNG, can make it correct display to OPENDCL inside.
vladgothe
2012-08-24 10:23 UTC
In your main form, create a picture box witch has the same dimensions as the form minus 1 or 2 pixels, set it's background transparent then load your png file into it by using LoadPictureFile method or use PaintPicture method, but in this case your image must have a transparent mask image and you must set UseMask as True.
fred_tomke
2012-08-24 14:47 UTC
Hi, I always used ICO with transparent backcolor. In my editor I select the color palette TrueColor (not Windows XP) for the ICO file. Another way could be to use RGB 192,192,192 for backcolor. In Windows it it used to be transparent (also with Bitmaps).
Regards, Fred