From: yinhua <hy...@cd...> - 2005-12-11 06:17:07
|
> Note that the idea here was to allow either RGB or RGBA at the end. If you > always want RGBA (even if the alpha channel is blank), I think you call > png_set_filler() or something like that. Yes, in my application, it is always RGBA, and the alpha channel is a blank transparency block in the image, I find some sample use png_set_filler() with a colorkey, but I don't know how to treat transparency. > Note that I haven't tested this with png_set_bgr(), but my impression is that > that works fine, too (i.e., => ABGR output). You'll still need to split the > alpha and BGR data into separate buffers yourself, if that's what you want Is there any kind of this sample for this? Sorry I'm a new guy for libpng, would you please give more help to solve this problem? Thanks a lot Frank |