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
 Save an image from a Multiple Image file like TIF
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

AndyColmes

USA
351 Posts

Posted - Jul 22 2014 :  14:20:17  Show Profile  Reply
How can I copy the bitmap or file from a Multiple Image file like TIF or GIF to a TImageEnView?

Thanks in advance.

Andy

w2m

USA
1990 Posts

Posted - Jul 22 2014 :  14:37:13  Show Profile  Reply
procedure TForm1.ImageEnMView1ImageSelect(Sender: TObject; idx: Integer);
{ ImageEnMView Image Select. }
begin
  { Display the image in ImageEnView }
  try
    ImageEnView1.IEBitmap.Assign(ImageEnMView1.GetTIEBitmap(idx));
    ImageEnView1.Update;
  finally
    ImageEnMView1.ReleaseBitmap(idx);
  end;
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

AndyColmes

USA
351 Posts

Posted - Jul 22 2014 :  15:22:53  Show Profile  Reply
Thanks again Bill. That worked.
Go to Top of Page

xequte

38604 Posts

Posted - Jul 24 2014 :  13:13:55  Show Profile  Reply
Hi Andy

You can also do it without a TImageEnMView by setting Params.ImageIndex before loading the image.

ImageEnView1.IO.Params.ImageIndex := iImageIndex;
ImageEnView1.IO.LoadFromFile(sFilename);


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

AndyColmes

USA
351 Posts

Posted - Jul 24 2014 :  16:11:13  Show Profile  Reply
Hi Nigel,

That is good to know. What I am trying to do is actually create a TupDown to allow the user to navigate through the pages while just showing the page image. So, with this code, I probably have to keep changing the value of iImageIndex and callin LoadFromFile each time?

Thanks Nigel.
Go to Top of Page

xequte

38604 Posts

Posted - Jul 24 2014 :  16:19:40  Show Profile  Reply
Hi Andy

Yes, that is correct. Please also see ImageEnView1.IO.Seek:

http://www.imageen.com/help/TImageEnIO.Seek.html


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

AndyColmes

USA
351 Posts

Posted - Jul 24 2014 :  22:08:05  Show Profile  Reply
Hi Nigel,

Fantastic. Thanks so much.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: