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
 AddBorderToImage

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
PeterPanino Posted - Jun 07 2025 : 10:00:25
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?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 07 2025 : 16:28:59
Thanks Peter

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

Nigel
Xequte Software
www.imageen.com