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
 ImageEnMView - display only first frame of GIF
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

FLDelphi

19 Posts

Posted - Mar 08 2017 :  20:20:10  Show Profile  Reply
Is there any way to only display the first frame of a GIF in a TImageEnMView. Or at least make the component only load 1 frame when loading GIFs? Similar to how Windows Explorer does it when setting the View to Large Icons. We're on version 4.3.0

Thanks!

w2m

USA
1990 Posts

Posted - Mar 09 2017 :  10:25:21  Show Profile  Reply
Your version of ImageEn is very old, so I do not know if version 4.3.0 has
an InsertImage method, but if it does, InsertImage will work.
TImageEnMView.InsertImage
Declaration


procedure InsertImage(idx: integer);
procedure InsertImage(Idx : integer; Stream : TStream);
procedure InsertImage(Idx : integer; Bitmap : TIEBitmap);
procedure InsertImage(Idx : integer; Bitmap : TBitmap);
procedure InsertImage(Idx : integer; Width, Height : integer; PixelFormat : TIEPixelFormat = ie24RGB); 
procedure InsertImage(Idx : integer; const FileName : string);

To load the first frame of a multibitmap file (gif, ico, tif):
ImageEnMView1.InsertImage(0, iFilename);
ImageEnMView1.Update;

I urge you to update ImageEn to the current version or the up comming version 7. You will be glad you did!

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

FLDelphi

19 Posts

Posted - Mar 09 2017 :  10:47:21  Show Profile  Reply
That worked. Thank you very much.

This is a great product, and as we are expanding our imaging capabilities, it seems very much worth it to upgrade.

Thanks again.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: