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
 What is the fastest way to create jpg files
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

john_siggy@yahoo.com

USA
158 Posts

Posted - Nov 11 2018 :  09:09:22  Show Profile  Reply
Of the several ways to create jpg files, which way is the fastest. I need to create thousands at a time.

Regards,

John

xequte

38493 Posts

Posted - Nov 11 2018 :  19:49:56  Show Profile  Reply
Hi John

Create in what way? Do you have a source image, or are you custom drawing them?



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

john_siggy@yahoo.com

USA
158 Posts

Posted - Nov 12 2018 :  16:00:35  Show Profile  Reply
Want to convert from a memorystream containing a bitmap to a memorystream containing a jpg image.

Thanks,
Go to Top of Page

xequte

38493 Posts

Posted - Nov 12 2018 :  17:20:05  Show Profile  Reply
OK, then just use a TIEBitmap and use Read() to input the stream, then Write() to output it.

https://www.imageen.com/help/TIEBitmap.Write.html

Something like:

bmp := TIEBitmap.create;
bmp.ParamsEnabled := True;
bmp.Read( ms );

// Set your JPEG quality, etc.
bmp.Params...
bmp.write( ms, ioJPEG );
bmp.free;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: