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
 Connect ImageEnView to ImageEnMView

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
dcs Posted - Nov 07 2016 : 01:20:41
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,
4   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Nov 08 2016 : 09:41:57
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
yogiyang Posted - Nov 08 2016 : 08:54:11
@Bill,

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

TIA


Yogi Yang
dcs Posted - Nov 08 2016 : 00:52:00
Thanks a lot.
w2m Posted - Nov 07 2016 : 09:41:26
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