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
 Dragging a selection on TImageEnView

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
HeartWare Posted - Jan 07 2020 : 03:04:41

I am trying to make a program where the program pre-defines a selection area on a loaded image in a TImageEnView viewer, using

ImageView.SelectionAspectRatio:=1/Aspect;
ImageView.MouseInteract:=ImageView.MouseInteract+[ImageEnView.miSelect];
ImageView.Select(Value.Left,Value.Top,Value.Right,Value.Bottom);

I also have

ImageView.SelectionBase:=iesbBitmap
ImageView.AutoFit:=TRUE
ImageView.AutoShrink:=TRUE

But after this, I cannot drag the selection rectangle around the image. Nothing happens when I try to do so (not even a new selection).

What I'd like to be able to do is to resize the selection (but keeping the aspect) and move the selection area around on the image.

Could you tell me what property settings I need to set in order to be able to move the selection rectangle around the image, and resize it (while keeping the aspect ratio)?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 08 2020 : 16:23:00
Hi

What version of ImageEn are you using?

I placed a TImageEnView on a form and put this code into a button click event:

  ImageEnView1.SelectionBase := iesbBitmap;
  ImageEnView1.AutoShrink := TRUE ;

  ImageEnView1.IO.LoadFromFile(ImagePath);

  ImageEnView1.SelectionAspectRatio := 1/2;
  ImageEnView1.MouseInteractGeneral := ImageEnView1.MouseInteractGeneral + [ImageEnView.miSelect];
  ImageEnView1.Select(100, 100, 200, 200);

I could drag and resize the selection. Can you give me more information?

Nigel
Xequte Software
www.imageen.com