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
 New property brushstep issues
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Oct 07 2018 :  06:40:47  Show Profile  Reply
Hello,
I use version 8.1.1. Now I wanted to use the new property Brushstep.
But it does not work correctly.
The steps are only performed at an angle of 90 °.
It is not possible to paint weird painting.
It also creates no correct circle?
Test has been done with the demo program.
In my own program I also have my own brush with Step.
This looks a lot better.
Enclosed 2 pictures of demo and my program.
Maybe you can improve it, so it's hardly usable.

Here is my easy query from my program:

procedure TForm1.ImageEnVect1MouseMove(Sender: TObject; Shift: TShiftState;
  X, Y: integer);
begin
if (quickmaskdraw or brushdraw or spraydraw or graydraw or
    mysaturation or protocolbrushdraw) then
begin
   // xakt and yakt in ImageEnVect1Mousedown set on bx and by
    if (abs (xakt - bx)> STEP) or
       (abs (yakt - by)> STEP) then
    begin
        // Paint brush
        ...... 
      xakt: = bx;
      yakt: = by;
    end; 
end;


Picture from Imageen Demo with different steps:

Picture from my Program with diff steps:


Klaus
www.klausdoege.de

xequte

38222 Posts

Posted - Oct 07 2018 :  23:50:44  Show Profile  Reply
Hi Klaus

Regarding the non-circle shape, you need to ensure that paint mode it set to discrete.

I'm not entirely sure if I have the effect you are looking for with "weird painting". Please email me for a test version.

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

klausdoege

Germany
389 Posts

Posted - Oct 08 2018 :  04:45:53  Show Profile  Reply
Hi Nigel,
Yes with the setting discrete creates a correct circle.
But the steps continue only in a straight direction, straight out, down or up. It is not possible to paint in an oblique angle of 10, 15 or 33 °. But that's usually the case.




Klaus
www.klausdoege.de
Go to Top of Page

xequte

38222 Posts

Posted - Oct 08 2018 :  18:38:07  Show Profile  Reply
Yes, so please email me to try the lastest update. I've added an optional "Min distance" algorithm.


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