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
 PAINT with transparency?

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

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


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
PeterPanino Posted - Dec 20 2021 : 11:47:13
Is it possible to PAINT with transparency? (Using Transparency instead of a color).

Is there an explicit feature to paint with transparency? Or would I have to use a workaround?: First panting with an unused color, and then, at OnMouseUp, automatically transforming the paint color to transparency?
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 10 2022 : 16:35:55
Just email me. Release will probably be Feb/March.

Xequte Software
PeterPanino Posted - Jan 10 2022 : 03:31:18
Excellent! How can I get the Beta? When is the next Release planned?
xequte Posted - Jan 09 2022 : 23:07:39

In the current beta you can use:

ImageEnView1.BrushTool.EraserColor := clNone;

Xequte Software
PeterPanino Posted - Dec 29 2021 : 15:05:06
Thanks. Perhaps implement it as an option of the iebfEraser BrushTool. So I could show a CheckBox to the user where he can select whether he wants to remove the color or not.

I am looking forward to it.
xequte Posted - Dec 29 2021 : 15:02:20
I'll look into this for the next update.

Xequte Software
PeterPanino Posted - Dec 29 2021 : 14:51:59
Hi Nigel,

The iebfEraser BrushTool does TWO things:

1. it removes the COLOR from the erased area
2. it sets the ALPHA transparency in the erased area

However, I EXPLICITLY need ONLY the second part: Setting the ALPHA transparency in the erased area (WITHOUT removing the color from the erased area).

How can I achieve this?
xequte Posted - Dec 21 2021 : 22:50:17
Hi Peter

Using a brush? You can do it as follows:

ImageEnView1.BrushTool.BrushFill     := iebfEraser;
ImageEnView1.BrushTool.EraserOpacity := 1.0;
ImageEnView1.MouseInteractGeneral    := [ miBrushTool ];

Xequte Software