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
 Change Image Size in BlobField
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Eric

18 Posts

Posted - May 20 2012 :  20:25:41  Show Profile  Reply
Hi,
How ouuld I change the jpeg Image size before I save back to database using ImageEnDBView?

Edelcom

Belgium
12 Posts

Posted - May 21 2012 :  00:55:36  Show Profile  Reply
You can resize the image with the Resample proc:

fInternalImage.Proc.Resample(<width>,<height>,<resample filter>);

With the resample filter being one of:
TResampleFilter = (rfNone, rfTriangle, rfHermite, rfBell, rfBSpline, rfLanczos3,
rfMitchell, rfNearest, rfLinear, rfFastLinear, rfBilinear,
rfBicubic, rfProjectBW, rfProjectWB);
it's defined in hyiedefs.pas

You can also use the Resize proc, but especially for jpeg images the resample produces better images.


Programmer by choice and profession.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: