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
 Couple of questions on rulers and brushes.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Dennis445a

Canada
43 Posts

Posted - Nov 29 2026 :  13:43:47  Show Profile  Reply
With grips on rulers is the a guide line option for precision?

Question, maybe suggestion on brushes.

Is there a selection brush option (Paint a selection)?

It would be nice to have a image scatter brush option kind of like Paintshop Pro's picture tubes (Random stamp brush based on image count).

And maybe a continues texture paint.



dm

Dennis445a

Canada
43 Posts

Posted - Nov 29 2026 :  14:40:21  Show Profile  Reply
I also noticed a problem I am having with adding Vertical grips. They always show at the top and not at the mouse position. The horizonal grips work as expected.

var
GripIndex: Integer;
begin
if RulerDir = rdHorizontal then
begin
// Get the current number of horizontal grips
GripIndex := EditView.RulerParams.HorzGripsCount;

// Increase grip count by 1
EditView.RulerParams.HorzGripsCount := GripIndex + 1;

// Set the position for the new grip
EditView.RulerParams.HorzGripsPos[GripIndex] := Ps;
end
else if RulerDir = rdVertical then
begin
// Get the current number of vertical grips
GripIndex := EditView.RulerParams.VertGripsCount;

// Increase grip count by 1
EditView.RulerParams.VertGripsCount := GripIndex + 1;

// Set the position for the new grip
EditView.RulerParams.VertGripsPos[GripIndex] := Ps;

// Force proper rendering
EditView.Invalidate;
EditView.Update;
end;

dm
Go to Top of Page

Dennis445a

Canada
43 Posts

Posted - Nov 29 2026 :  14:55:34  Show Profile  Reply
I was thinking more about the image scatter brush and realize it needs to be empty polygon points with an attached image reference (Png, svg...). The issue is making sure the poly points remain on the same layer.

dm
Go to Top of Page

Dennis445a

Canada
43 Posts

Posted - Nov 29 2026 :  15:40:01  Show Profile  Reply
One other question as it doesn't seem obvious looking through the help doc, how do you remove a grip?

dm
Go to Top of Page

xequte

39617 Posts

Posted - Nov 30 2026 :  17:11:17  Show Profile  Reply
Hi Dennis,

Thanks for the detailed suggestions. Here's where each one stands:

1. Guide lines for ruler grips
This is added for the next update. Set RulerParams.ShowGripGuides := True to draw a line across the image at each grip position. Lines follow their grips as they are dragged. Horizontal ruler grips draw vertical lines, and vertical ruler grips draw horizontal lines. The colour is set by RulerParams.GripGuidesColor. The default is clAqua. Set it to clNone to draw each line in the colour of its grip.
ImageEnView1.RulerParams.ShowGripGuides  := True;
ImageEnView1.RulerParams.GripGuidesColor := clAqua;

This works separately from DisplayGridKind = iedgRulerGuides, which draws lines at the ruler label ticks rather than at grip positions, so you can use both at the same time.

2. Selection brush, 3. Image scatter brush, 4. Continuous texture paint
These are good ideas. We've added them to our to-do list for a future version.

5. Vertical grips added in OnRulerClick always at the top
Thanks for reporting this. It's fixed for the next update, and inverted rulers are handled correctly too.

6. Removing a grip
We've added RulerParams.RemoveHorzGrip(Index) and RulerParams.RemoveVertGrip(Index). They remove a specific grip, and the grips after it move down one index. Previously you could only remove the last grips by reducing HorzGripsCount/VertGripsCount. For example, to remove a grip when it is double-clicked:
procedure TForm1.ImageEnView1RulerGripDblClick(Sender: TObject; RulerDir: TRulerDir; Grip: Integer; GripPos: Double);
begin
  if Ruler = rdHorizontal then
    ImageEnView1.RulerParams.RemoveHorzGrip( Grip )
  else
    ImageEnView1.RulerParams.RemoveVertGrip( Grip );
end;

If you'd like to try these before the next release, email us and we can send you an updated source.


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

Dennis445a

Canada
43 Posts

Posted - Dec 01 2026 :  09:45:38  Show Profile  Reply
Awesome, this keeps getting better and better.

dm
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: