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 Bitmap from ImageEnView

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
Alex Posted - Jun 02 2014 : 03:36:10
Good day !
Tell me how you can copy an image from ImageEnView in the Image.
Trying so Image2.Picture.Bitmap.Assign( ImageEnView1.Bitmap ) and does not work.
Thank you.
3   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Jun 06 2014 : 12:12:00
As far as I know you can not achieve this with TImage, because TImage does not support selections without a lot of added code for TImage.

You would be much better off to load your image into TImageEnView and then call
ImageEnView1.CopySelectionToBitmap(ImageEnView2.Bitmap);
or
ImageEnView1.CopySelectionToIEBitmap(ImageEnView2.IEBitmap);


Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Alex Posted - Jun 06 2014 : 04:06:47
Thank you. ( Not used Image1.Update )
There is another question: how to transfer from ImageEnView not all of the image in the Image1, but only the selected portion of the image ?
w2m Posted - Jun 02 2014 : 13:56:57
It does work. You are just not updating ImageEnView after the copy:
procedure TForm1.CopyTImageEnViewToTImage1Click(Sender: TObject);
begin
  { Clear the picture }
  Image1.Picture := nil;
  { Copy the ImageEnView1.Bitmap to TImage }
  Image1.Picture.Bitmap.Assign(ImageEnView1.Bitmap);
  { Refresh TImage }
  Image1.Update;
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 Commercial ImageEn Development