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
 Change Image Size in BlobField

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
Eric Posted - May 20 2012 : 20:25:41
Hi,
How ouuld I change the jpeg Image size before I save back to database using ImageEnDBView?

1   L A T E S T    R E P L I E S    (Newest First)
Edelcom 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.