Author |
Topic  |
|
Eric

18 Posts |
Posted - May 20 2012 : 20:25:41
|
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
|
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. |
 |
|
|
Topic  |
|
|
|