OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: XDCAD on August 24, 2012, 02:17:17 AM

Title: Please Help me, About PNG file...
Post by: XDCAD on August 24, 2012, 02:17:17 AM
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.
Title: Re: Please Help me, About PNG file...
Post by: vladgothe on August 24, 2012, 03:23:49 AM
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.
Title: Re: Please Help me, About PNG file...
Post by: Fred Tomke on August 24, 2012, 07:47:03 AM
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