ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Mask layer merge problem

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
apollo800 Posted - May 17 2013 : 05:05:50
//-----------------------------------------------------------------
TImageEnView * tempIE=new TImageEnView(this);
tempIE->IO->LoadFromFileAuto("NULL.png");
tempIE->LayersAdd();
tempIE->IO->LoadFromFileAuto("back.jpg");
tempIE->LayersAdd();
tempIE->IO->LoadFromFileAuto("mask.jpg");
tempIE->Layers[2]->IsMask =true;
IELayersMerge(tempIE->Layers[0], tempIE->Layers[1],tempIE->Layers[2]
,ImageEnView1->Layers[1]->Bitmap ,rfNone,clBlack,false);
delete tempIE;
//-------------------------------------------------------------------

NULL.png,back.jpg,mask.jpg have some size.
ImageEnView1->Layers[1]#65292;The location and size of the mask is applied incorrect#65281;
How merge with a mask layer to a layer?and The target layer have to keep Alpha?
3   L A T E S T    R E P L I E S    (Newest First)
fab Posted - May 28 2013 : 22:51:09
You should replace:

IELayersMerge(tmpIE->Layers[0], tmpIE->Layers[1],tmpIE->Layers[2], ImageEnView1->IEBitmap , rfNone,clBlack,false);

...with...

tmpIE->LayersMergeAll();
ImageEnView1->Assign(tmpIE);
apollo800 Posted - May 24 2013 : 04:40:05
I mainly want to mask layer is applied to the current layer, and the alpha channel is preserved


74.92 KB

Download Attachment: 201352443925_MeryMaskLayer.zip
fab Posted - May 20 2013 : 02:17:05
Please could you send a test project (with images) that shows the problem?