Hi,
I'm asking here instead of in the FPC Users mailing list, as I think
Lazarus developers tend to use more graphic (GUI) oriented programming
with FPC.
Anyway, my question. Are there any re-sampling filters in FCL or LCL
that I can use in my code. I want to implement Canvas.StretchDraw in
fpGUI and allow the developer to select from different re-sampling
filters.
I found a free library (source unit) containing the following
re-sampling filters which does what I want. It was written for Delphi
2 and Delphi 3, but I think should be easy to port to FPC.
Sample filters supported in the library.
function SplineFilter(Value: Single): Single;
function BellFilter(Value: Single): Single;
function TriangleFilter(Value: Single): Single;
function BoxFilter(Value: Single): Single;
function HermiteFilter(Value: Single): Single;
function Lanczos3Filter(Value: Single): Single;
function MitchellFilter(Value: Single): Single;
Credit notice:
The algorithms and methods used in this library are based on the article
"General Filtered Image Rescaling" by Dale Schumacher which appeared in the
book Graphics Gems III, published by Academic Press, Inc.
Regards,
- Graeme -
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives