Please Help me, About PNG file...

Started by XDCAD, August 24, 2012, 02:17:17 AM

Previous topic - Next topic

XDCAD

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

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

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]