Transparent gif

Hello,

We have a gif image which has a transparent color,
but when we use PxLoadImage to load this gif image
into a widget ( Ptlabel ), It seems no transparent
at all.

How can we do that?

Thanks a lot.


WeiBing Tong

Aquila Mining Systems Ltd.
1450 City Councillors, Suite 330
Montreal, QC
Canada H3A 2E6
Tel: (514) 874-9917 ext 239
Fax: (514) 874-4005
Email: wbtong@aquilamsl.com

WeiBing Tong <wbtong@aquilamsl.com> wrote:

Hello,

We have a gif image which has a transparent color,
but when we use PxLoadImage to load this gif image
into a widget ( Ptlabel ), It seems no transparent
at all.

Photon uses RGB to display images, which doesn’t allow for a
transparent colour in the image itself. Instead, the image
structure uses a transparency mask. Take a look in the online
documentation for Photon - there should be several sections
covering this. If your image is a palette-based one, have a look
at PhMakeTransBitmap()


Norbert Black
QSSL Training Services