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
 BrushTool not painting on Mask Layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
725 Posts

Posted - Jun 09 2018 :  10:12:49  Show Profile  Reply
Hello,

I seems that there is a bug in the newly implemented BrushTool.

If we convert any layer to Mask and then convert the same layer back to normal and try to paint on it. The paint tool seems to loose its bearing and paint randomly at various places.

Even if we keep the Mask Layer as it and select it and try to paint it does not work.

Please help me solve this problem as soon as possible.

I have modified the BrushTool demo to demonstrate the problem.

Please check attached project.

To test it.

Compile and run the project. Open a 24bit image. Try to paint on it. Things work as expected!

Now click on the button Add Mask Layer. Now try to paint on the image. It will paint randomly.


TIA


attach/yogiyang/201869101240_BrushTool.zip
22.25 KB


Yogi Yang

w2m

USA
1990 Posts

Posted - Jun 09 2018 :  10:53:40  Show Profile  Reply
Try setting ImageEnView1.BrushTool.TransparencyMode := ietmCompositing;

if TransparencyMode1.State = tssOff then
  ImageEnView1.BrushTool.TransparencyMode := ietmReplace
else
  ImageEnView1.BrushTool.TransparencyMode := ietmCompositing;

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

yogiyang

India
725 Posts

Posted - Jun 10 2018 :  01:12:51  Show Profile  Reply
@Bill,
Thank for the tip but I cannot compile code after adding: ImageEnView1.BrushTool.TransparencyMode := ietmCompositing;

I am using IE 7.5.0.

TIA


Yogi Yang
Go to Top of Page

xequte

38221 Posts

Posted - Jun 10 2018 :  19:23:07  Show Profile  Reply
Hi Yogi

I think this is a bug in 7.5.0. I cannot reproduce in the 8.0.0 beta, which has had a lot of changes to the brush code. Please wait for that release (in a couple of weeks).

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