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
 TImageEnMView question
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bmesser

United Kingdom
224 Posts

Posted - Sep 14 2014 :  09:45:08  Show Profile  Reply
Hi

I have a large grid of images (7x5) that I have rotated, cropped and resampled images as I have loaded them into the grid.

I now want to double click on an image and display the original image in a separate dialog box in a TImageEnView component and without the cropping or rotation.

I figure that I need to get back to the original image that I loaded into the grid, and before I rotated and cropped it, so to that end I've tried both of the the following calls:

Image.CopyToIEBitmap(Image.SelectedImage,fmDialog.Image.IEBitmap);

fmDialog.Image.IEBitmap.Assign(Image.GetBitmap(Image.SelectedImage));


They both work fine but only return the image as displayed in the grid and not the original image. Is there anyway that I can get back the original "raw" image that I loaded into the grid?

Or is there maybe only a single copy of the image maintained in the grid, and once you change it you can't get get back to the original?

Bruce.

w2m

USA
1990 Posts

Posted - Sep 14 2014 :  11:48:00  Show Profile  Reply
Try getting the filename of the selected thumbnail with ImageEnMView1.MIO.Params[ImageEnView1.SelectedImage].Filename and then reload the image from a file to your dialog's ImageEnView1...

FMDialog.ImageEnView1.IO.LoadFromFile
(Form1.ImageEnMView1.MIO.Params[Form1.ImageEnMView1.SelectedImage].Filename).

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

bmesser

United Kingdom
224 Posts

Posted - Sep 14 2014 :  12:04:08  Show Profile  Reply
Thanks Bill I didn't realise I could extract the file name like that.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: