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
 TImageEnVect rectangles with rounded corners
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndyColmes

USA
351 Posts

Posted - Mar 04 2018 :  06:35:56  Show Profile  Reply
I am creating objects with IEKBox at the moment, but I was asked to create rectangles with rounded corners instead. Is this possible?

Thanks

Andy

w2m

USA
1990 Posts

Posted - Mar 04 2018 :  10:33:56  Show Profile  Reply
There is no rounded box object or parameter to change the corners, so you cannot create a rounded rectangle box at the moment. You can create a shape layer that is very similar to objects:

Screen.Cursor := crHourglass;
try
  iLayer := ImageEnView.LayersAdd(ielkShape);
  ImageEnView.Layers[iLayer].Name := 'Shape Layer';
  ImageEnView.Layers[iLayer].PosX := ImageEnView.Layers[iLayer - 1]
          .PosX + 100;
  ImageEnView.Layers[iLayer].PosY := ImageEnView.Layers[iLayer - 1]
          .PosY + 100;
  ImageEnView.LayersCurrent := iLayer;
  with TIEShapeLayer(ImageEnView.CurrentLayer) do
  begin
     Shape := iesRoundRect;
     ImageEnView.Update;
  end;
  ImageEnView.MouseInteract := ImageEnView.MouseInteract +
     [miMoveLayers, miResizeLayers];
finally
  Screen.Cursor := crDefault;
end;

ShapeLayers require use of ImageEn versions 7.x

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

AndyColmes

USA
351 Posts

Posted - Mar 18 2018 :  12:07:01  Show Profile  Reply
Thanks Bill. I will give that a try.

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