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
 ImageEnMView - display only first frame of GIF

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
FLDelphi Posted - Mar 08 2017 : 20:20:10
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!
2   L A T E S T    R E P L I E S    (Newest First)
FLDelphi Posted - Mar 09 2017 : 10:47:21
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.
w2m Posted - Mar 09 2017 : 10:25:21
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