[Implemented] Loading the PNG Alpha-Channel
-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
[Implemented] Loading the PNG Alpha-Channel
It seems as though the alpha-channel of a PNG is not loaded into memory. Could that be fixed for the next version?
P.S.: No, I'm not talking about displaying this alpha-channel with DrawImage.
P.S.: No, I'm not talking about displaying this alpha-channel with DrawImage.
-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
See here:
viewtopic.php?t=10190&start=15
Though it does not load the alpha-channel of a PNG automatically, it's the result that does matter and not the how, isn't it?
viewtopic.php?t=10190&start=15
Though it does not load the alpha-channel of a PNG automatically, it's the result that does matter and not the how, isn't it?
-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
As the image-gadget is a Window, this is IMHO not possible.Kale wrote:This would be very cool! I would love to display graphics on apps (using the image gadget) with nice blended edges instead of hard bitmap type edges. Hard bitmap edges look so crap when people start changing the windows to their prefered colour.
Does your lib provide a way of loading a grayscale alpha channel for use as a transparency mask for an image like .png? Or does it just provide a way of just selecting 1 colour to make transparent (which is what i don't want).See here:
viewtopic.php?t=10190&start=15
Though it does not load the alpha-channel of a PNG automatically, it's the result that does matter and not the how, isn't it?

-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
*STUNNED* 8O Very nice work freedimension, X2D_DrawAlphaImage is (for me) a wish come true!There are two functions X2D_DrawTransparentImage and X2D_DrawAlphaImage. The first will "cut out" a single color, the second can do Alpha-Transparency with and without masks. For more detail just download the 30k

-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact: