nanogui: Alpha channel whit nano-x 0.91
Subject:
Alpha channel whit nano-x 0.91
From:
"Marco Rossi" ####@####.####
Date:
9 May 2006 16:22:35 +0100
Message-Id: <003f01c6737c$2e85d6e0$0c08a8c0@marco>
::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
I have executed your instructions (also I have set 32bpp because with 24bpp
I had an segmentation foult error )
but the result is one full image without transparencies.
In order to visualize the rows I have used the functions GrDrawImageToFit
and GrDrawImageFromFile.
I am working on Linux PC whit framebuffer.
where mistake?
Regards,
Marco
L'informativa ai sensi del D.Lgs 196/2003 (Codice della Privacy) sul sito
www.corghi.com