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
 save first frame

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
mnosouhi Posted - Jun 19 2015 : 20:02:38
hi
How do the first frame of a video file in a jpg file I saved?
I use version 5.2.0.
thanks
6   L A T E S T    R E P L I E S    (Newest First)
mnosouhi Posted - Jun 25 2015 : 05:09:31
thanks
xequte Posted - Jun 24 2015 : 15:24:01
Hi

To load just the first frame you can use:

ImageEnMView1.Clear;
ImageEnMView1.AppendImage( 'g:\video.mp4' + IEM_Path_Index_Delimiter + 0 );

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
mnosouhi Posted - Jun 22 2015 : 14:10:25
very thanks
i use this code to load video file to ImageEnMView1 :
ImageEnMView1.MIO.LoadFromFile('g:\video.mp4');

Is the code right , when I'm going to use only the first frame?
Is there a way that not needed loaded Full Video ?
w2m Posted - Jun 22 2015 : 09:08:07
Here is one way to save the video file first frame to a jpg file:

procedure TForm1.SaveFirstFrame1Click(Sender: TObject);
var
  iIEBitmap: TIEBitmap;
begin
  if SavePictureDialog1.Execute then
  begin
    iIEBitmap := TIEBitmap.Create;
    try
      iIEBitmap.Assign(ImageEnMView1.GetTIEBitmap(0));
      iIEBitmap.Write(SavePictureDialog1.FileName);
      ImageEnMView1.ReleaseBitmap(0);
    finally
      iIEBitmap.Free;
    end;
  end;
end;


Another way is:
ImageEnMView1.GetImageToFile(0, SavePictureDialog1.FileName);

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
mnosouhi Posted - Jun 22 2015 : 07:39:14
yes dear
xequte Posted - Jun 21 2015 : 19:09:14
Hi

Sorry, so you have loaded a video file into a TImageEnMView? And want to save the first frame as a JPEG?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com