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
 How to select region and copytoclip in imageenmvi

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
shxwinner Posted - Mar 08 2014 : 01:44:28
I want to select a region and copy this region to clipboard in imageenMviewer, help me .thanks#65281;
2   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Mar 08 2014 : 10:22:09
Based on your comments it looks like you want to copy the selected image to the clipboard. ImageEnMView does not allow rubberband selections so you can not copy a selected area of a thumbnail to the clipboard with TImageEnMView.

If you want to copy the selected TImageEnMView thumbnail to the clipboard then do this:
procedure TForm1.CopySelectedImageToClipboard1Click(Sender: TObject);
{ Copy the selected image or thumbnail to the clipboard. }
begin
  ImageEnMView1.Proc.CopyToClipboard(True);
end;

To copy a region of the image to the clipboard, add a TImageEnView to your form, set its MouseInteract to miSelect, copy the image from TImageEnMView to TImageEnView, make a selection in TImageEnView, then copy the TImageEnView selection to the clipboard as shown below:
procedure TForm1.FormCreate(Sender: TObject);
{ Set TImageEnView.MouseIntract to selection. }
begin
  ImageEnView1.MouseInteract := [miSelect];
end;

procedure TForm1.ImageEnMView1ImageSelect(Sender: TObject; idx: Integer);
{ Copy the selected image from ImageenMView1 to ImageEnView. }
begin
  ImageEnView1.IEBitmap.Assign(ImageEnMView1.GetTIEBitmap(idx));
  ImageEnMView1.ReleaseBitmap(idx);
  ImageEnView1.Update;
end;

Now when the image is in ImageEnView then make a selection and copy the selection to the clipboard.
procedure TForm1.CopySelection1Click(Sender: TObject);
{ Copy selected area to the clipboard. }
begin
  if ImageEnView1.Selected then
    ImageEnView1.Proc.SelCopyToClip(True);
end;

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Custom ImageEn Development
shxwinner Posted - Mar 08 2014 : 02:05:04
imgMview.Proc.SelCopyToClip(True);
cannot copy selection region to clipboard#65292;it copy one image all to clipboard#65292;why#65311;