Zitat von Graeme Geldenhuys <[EMAIL PROTECTED]>:

> On Fri, Nov 28, 2008 at 3:14 PM, Michael Van Canneyt
> <[EMAIL PROTECTED]> wrote:
> >
> > On Thu, 27 Nov 2008, Mattias Gaertner wrote:
> >
> >> As far as I can see, fpImage has for StretchDraw only the
> >> TMitchelInterpolation.
> >
> > This is not correct. This is the standard interpolation used.
> > But you can use other interpolations. The extinterpolation.pp
> > unit contains other interpolations (6 or 7) that can be used
> > with the StretchDraw implementation.

Thanks.
Impressive list.
But they have all the same problems. They create an unnecessary temporary image
and have a fixed max support. Maybe I misunderstand the computation. I would
expect a mapping of a linear distribution 0..1 to a mitchel, gauss, bilinear,
... distribution 0..1.
Something like  diff:=Filter(diff*MaxSupport);

I will extend my function, so that you can use any of the other interpolations.


> > But additional interpolations are always welcome.

Ok. I will extend it and you can add it to this unit.


> fpGUI doesn't use fpImage yet, but I did borrow the StretchDraw() code
> from there. And yes, you can specify a whole bunch of other
> interpolations to use. If memory serves me well, fpGUI has a few more
> interpolations than fpImage. When I start implementing fpImage support
> in fpGUI, I will contribute those to FCL.

I'm curious: who needs more than 13 different image interpolations?


Mattias

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to