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
 AddBorderToImage
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

980 Posts

Posted - Jun 07 2025 :  10:00:25  Show Profile  Reply
The ImageEn demo:
\ImageEn\Demos\ImageEditing\AddBorder
... does not have an option to add a border with transparency to an image in one single step, so I created one:

attach/PeterPanino/20256795536_ImageEnAddBorder_Test.zip
78.19 KB

The unit PAImageEn.Utils adds more flexibility in a single-step procedure:

procedure AddBorderToImageEx(AImageEnView: TImageEnView;
  const ALeft, ATop, ARight, ABottom: Integer;
  AColor: TColor; AAlpha: Byte = 255);

procedure AddBorderToImage(AImageEnView: TImageEnView; AThickness: Integer;
  AColor: TColor; AAlpha: Byte = 255; ASides: TBorderSides = bsAll);


Question: Are there built-in ImageEn methods to achieve this in a more simplified way?

xequte

39047 Posts

Posted - Jun 07 2025 :  16:28:59  Show Profile  Reply
Thanks Peter

There is not a method to create a partially transparent border in ImageEn at this time.

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