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
 TImageEnMView question

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
bmesser Posted - Sep 14 2014 : 09:45:08
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.
2   L A T E S T    R E P L I E S    (Newest First)
bmesser Posted - Sep 14 2014 : 12:04:08
Thanks Bill I didn't realise I could extract the file name like that.
w2m Posted - Sep 14 2014 : 11:48:00
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