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
 Avatar selection

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
mountaincoder Posted - Jun 02 2023 : 17:43:20
I will struggle through and figure this out myself if needed, but I thought there may be an easy answer I'm not seeing.

In my program (VCL) users can upload images which we then use a circle from as the avatar or profile image (like LinkedIn or Facebook - nothing new here).

Currently we're just grabbing the circle from the center of the image but our users would like to select the area of the image that is used (because they are used to all the social apps).

Is there an easy way to do this using ImageEn VCL (latest version)?
3   L A T E S T    R E P L I E S    (Newest First)
mountaincoder Posted - Jun 03 2023 : 14:38:16
Thanks Nigel! That's just what I needed to get started.
xequte Posted - Jun 03 2023 : 04:26:45
You can also gray out the non-selection using iesoMarkOuter:

http://www.imageen.com/help/TImageEnView.SelectionOptions.html

Nigel
Xequte Software
www.imageen.com
xequte Posted - Jun 03 2023 : 04:11:47
Hi

Why not just use a circular selection? You could default to your best guess by setting the initial circle rect too.

ImageEnView1.MouseInteractGeneral := [miSelectCircle];

http://www.imageen.com/help/TImageEnView.MouseInteractGeneral.html

You can force a circle (rather than an ellipse) using:

ImageEnView1.ShiftKeyLock := [ iessAlt_MaintainAR ];

http://www.imageen.com/help/TImageEnView.ShiftKeyLock.html


And you can initialize the selection using:

http://www.imageen.com/help/TImageEnView.SelectEllipse.html


Nigel
Xequte Software
www.imageen.com