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.
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 <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