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
|