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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 PAINT with transparency?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

933 Posts

Posted - Dec 20 2021 :  11:47:13  Show Profile  Reply
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?

xequte

38611 Posts

Posted - Dec 21 2021 :  22:50:17  Show Profile  Reply
Hi Peter

Using a brush? You can do it as follows:

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


https://www.imageen.com/help/TImageEnView.BrushTool.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

PeterPanino

933 Posts

Posted - Dec 29 2021 :  14:51:59  Show Profile  Reply
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?
Go to Top of Page

xequte

38611 Posts

Posted - Dec 29 2021 :  15:02:20  Show Profile  Reply
I'll look into this for the next update.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

PeterPanino

933 Posts

Posted - Dec 29 2021 :  15:05:06  Show Profile  Reply
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.
Go to Top of Page

xequte

38611 Posts

Posted - Jan 09 2022 :  23:07:39  Show Profile  Reply
Hi

In the current beta you can use:

ImageEnView1.BrushTool.EraserColor := clNone;

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

PeterPanino

933 Posts

Posted - Jan 10 2022 :  03:31:18  Show Profile  Reply
Excellent! How can I get the Beta? When is the next Release planned?
Go to Top of Page

xequte

38611 Posts

Posted - Jan 10 2022 :  16:35:55  Show Profile  Reply
Just email me. Release will probably be Feb/March.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: