Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - img_t flags: (1 Item)
   
img_t flags  
Hi,

I have a question in regards to the following img_t flags:
IMG_TRANSPARENCY;
IMG_FMT_ALPHA;

I have a file that is ARGB8888.  When I load this file as below
	rc = img_load_file(ilib, "/tmp/Day_24hr.png", NULL, &image1);

the IMG_TRANSPARENCY, IMG_FMT_ALPHA are not set!  Aren't these flags suppose to be set by the img_load_file, if the file
 is ARGB8888 png file?  I am trying to blit (blend) two ARGB files, but for some reason, I keep overwriting the 
destination instead of the blending.  I also tried the following without luck
alpha.mode = GF_ALPHA_M1_SRC_PIXEL_ALPHA;
gf_context_set_dst_alpha(context, &alpha);

I would appreciate if someone can show me me some code on how to blend to two ARGB png files together.

I am trying to evaluate the QNX for our next company project but the documentation is not always very easy to follow (at
 least for a non graphic expert like me)

Thanks,
R.S.