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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TImageEnVect rectangles with rounded corners

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
AndyColmes Posted - Mar 04 2018 : 06:35:56
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
2   L A T E S T    R E P L I E S    (Newest First)
AndyColmes Posted - Mar 18 2018 : 12:07:01
Thanks Bill. I will give that a try.

Andy
w2m Posted - Mar 04 2018 : 10:33:56
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