nanogui: Transparency in jpegs????
Subject:
Transparency in jpegs????
From:
tj ####@####.####
Date:
2 Mar 2006 19:54:07 +0000
Message-Id: <44074D96.2030500@comcast.net>
I have a strange problem, I am getting transparency when loading a jpeg
image when using GrLoadImageFromFile(). Now the first thing you might
say is jpegs don't support transparency. But, it is happening. The white
GR_RGB(255,255,255) pixels are transparent.
Now I do load some gif images that are using white, they're background
color, as transparent. Could it be that for some reason when the jpeg is
getting loaded the transcolor member of GR_IMAGE_HDR is getting set to
the previouisly loaded gif's white transparency color instead of a being
set to a -1?
Can this structure be accessed from app code? the image ID is simply an
integer ID.
tj