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
 Transparency for a layer restricted to a selection

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
AndyColmes Posted - Nov 03 2011 : 08:17:13
I know I can adjust the transparency for a layer, but can I restrict it only to a selection if a selection exists?
4   L A T E S T    R E P L I E S    (Newest First)
AndyColmes Posted - Nov 08 2011 : 08:45:40
Thanks Fabrizio. I will give it a try.
fab Posted - Nov 08 2011 : 00:49:03
The demo at ImageEditing\Layers shows several layer related features (included layer mask).
About the way nr.2, just execute the code shown.
AndyColmes Posted - Nov 07 2011 : 12:01:09
Thanks Fabrizio. Do you have a demo project on how this is done? I am not sure how to create a layer mask using the bitmap.
fab Posted - Nov 04 2011 : 07:24:48
There are two ways:
1 - create a layer mask (a 8 bit gray scale bitmap which specifies the upper layer transparency, pixel by pixel)
2 - change the alpha channel of the bitmap

For example (2):
// set transparency of selected area = 50
ImageEnView1.SetSelectedAreaAlpha(50);