ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Copy Bitmap from ImageEnView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Alex

5 Posts

Posted - Jun 02 2014 :  03:36:10  Show Profile  Reply
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.

w2m

USA
1990 Posts

Posted - Jun 02 2014 :  13:56:57  Show Profile  Reply
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
Go to Top of Page

Alex

5 Posts

Posted - Jun 06 2014 :  04:06:47  Show Profile  Reply
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 ?
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jun 06 2014 :  12:12:00  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: