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
 Copy selection to 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
BionicWave Posted - Jul 28 2011 : 03:35:11
I have two TImageEn.
Both have a selection.
The selection could be different in width and height.
Is it possible to copy the selected pixels from one TImageEn to
the other TImageEn selected region?
My selections are basically all in square form (like 16x16 or 32x32)
It is possible though, that the source has a size of 16x16 and
the destination selection has 32x32 selected.
Thanks in advance.
2   L A T E S T    R E P L I E S    (Newest First)
BionicWave Posted - Jul 28 2011 : 08:47:00
Hey, thanks.
That works realy well.

Now i got another problem, i'll post it as another thread.
w2m Posted - Jul 28 2011 : 06:17:15
Probably the easiest way to do this is via the clipboard:
procedure TForm1.Button1Click( Sender: TObject );
begin
  // paste selection contents to the clipboard
  ImageEnView1.Proc.SelCopyToClip;
  // if clipboard contains data valid for TImageEnProc
  if ImageEnView2.Proc.IsClipboardAvailable then
  begin
    // paste the contents of the Clipboard to the ImageEnView2 selected area
    ImageEnView2.Proc.SelPasteFromClip( );
    // or paste the clipboard to the ImageEnView2 selected area, stretching the image to fit the selection
    // ImageEnView2.Proc.SelPasteFromClipStretch;
    ImageEnView2.Update;
  end;
end;


William Miller