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
 Import Resolution
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

stevewagner

USA
5 Posts

Posted - Jan 27 2013 :  21:49:24  Show Profile  Reply
When importing from files, is there a way to limit the size of the image? Limit the resolution?

Steve Wagner
steve@instamation.com

xequte

38610 Posts

Posted - Jan 28 2013 :  01:56:25  Show Profile  Reply
If you are loading a JPEG you can reduce the size as follows...

// Fastest way to load a thumbnailed jpeg of about 100x100 pixels
ImageEnView1.IO.Params.Width  := 100;
ImageEnView1.IO.Params.Height := 100;
ImageEnView1.IO.Params.JPEG_Scale := ioJPEG_AUTOCALC;
ImageEnView1.IO.LoadFromFile('my.jpg');


With Raw format you can use:
RAW_HalfSize := True;



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