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