nanogui: Alpha channel whit nano-x 0.91


Previous by date: 8 May 2006 17:09:03 +0100 Alpha channel whit nano-x 0.91, Marco Rossi
Next by date: 8 May 2006 17:09:03 +0100 TinyGL0.4 linking issues, Atul Kulkarni
Previous in thread: 8 May 2006 17:09:03 +0100 Alpha channel whit nano-x 0.91, Marco Rossi
Next in thread: 8 May 2006 17:09:03 +0100 Alpha channel whit nano-x 0.91, Marco Rossi

Subject: Re: [nanogui] Alpha channel whit nano-x 0.91
From: "Greg Haerr" ####@####.####
Date: 8 May 2006 17:09:03 +0100
Message-Id: <0e5d01c672b9$b522f0c0$6401a8c0@winXP>

: In order to design the image .PNG  whit transparency and alpha channel.
: unfortunately the result is one full image without transparencies.
: How I can use the alpha channel with NANO-X  0.91?

You'll need some slight modifications to the PNG decoder
in engine/image_png.c.  When the PNG has an alpha channel,
you'll need the code to do the following (but only in that case):

1. Set pimage->compression is set to MWIMAGE_RGB |
MWIMAGE_ALPHA_CHANNEL.

2. Don't call the png_set_strip_alpha(state) function.

This should result in a ARGB-code image file.

Regards,

Greg


Previous by date: 8 May 2006 17:09:03 +0100 Alpha channel whit nano-x 0.91, Marco Rossi
Next by date: 8 May 2006 17:09:03 +0100 TinyGL0.4 linking issues, Atul Kulkarni
Previous in thread: 8 May 2006 17:09:03 +0100 Alpha channel whit nano-x 0.91, Marco Rossi
Next in thread: 8 May 2006 17:09:03 +0100 Alpha channel whit nano-x 0.91, Marco Rossi


Powered by ezmlm-browse 0.20.