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
 Connect ImageEnView to ImageEnMView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

dcs

USA
26 Posts

Posted - Nov 07 2016 :  01:20:41  Show Profile  Reply
I wonder if it's possible to connect an ImageEnView to an ImageEnMView. Basically, I'd like to use an ImageEnView to display a selected frame from an ImageEnMView. Can somebody please help?

Thanks,

w2m

USA
1990 Posts

Posted - Nov 07 2016 :  09:41:26  Show Profile  Reply
There is no way to connect a TImageEnMView to a TImageEnView, but you can easily display the image selected in TImageEnMView in TImageEnView using a number of ways:

procedure TForm1.ImageEnMView1ImageSelect(Sender: TObject; idx: Integer);
{ Display the selected image. }
var
  iIEBitmap: TIEBitmap;
begin
  iIEBitmap := ImageEnMView1.GetTIEBitmap(idx);
  try
    ImageEnView1.IEBitmap.Assign(iIEBitmap);
    ImageEnView1.IO.Params.Assign(ImageEnMView1.MIO.Params[idx]);
    ImageEnView1.Update;
  finally
    ImageEnMView1.ReleaseBitmap(idx);
  end;
end;
or
procedure TForm1.ImageEnMView1ImageSelect(Sender: TObject; idx: Integer);
{ Display the selected image. }
begin
  ImageEnMView1.CopyToIEBitmap(idx, ImageEnView1.IEBitmap);
  ImageEnView1.Update;
end;

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

dcs

USA
26 Posts

Posted - Nov 08 2016 :  00:52:00  Show Profile  Reply
Thanks a lot.
Go to Top of Page

yogiyang

India
727 Posts

Posted - Nov 08 2016 :  08:54:11  Show Profile  Reply
@Bill,

If we use your code will the Image that is loaded in ImageEnView be in its original size (dimensions)?

TIA


Yogi Yang
Go to Top of Page

w2m

USA
1990 Posts

Posted - Nov 08 2016 :  09:41:57  Show Profile  Reply
The images will be the original size only if StoreType is ietNormal. If the store type is ietThumb or ietFastThumb then the image will be a thumbnail and the size of the ImageEnView bitmap will be the size of the thumbnail and not the image. If you use ietThumb or ietFastThumb and want to display the original image then use ImageEnView1.IEBitmap.LoadFromFile(ImageEnView1.IO.Params.Filename) instead. You can get the file name from ImageEnMView1 as well iFilename := ImageEnMView1.MIO.Params[idx].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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: