Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2006-11

Stretchdraw implemented.

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

Hello,

I've committed a patch (by Luk Vandelaer) that adds a StretchDraw() routine to TFPCanvas.

It draws an image on a canvas, rescaled to a given size. The interpolation mechanism used when scaling is configurable.

(Just set the Interpolation property to a TFPCustomInterpolation descendent)

By default, a Mitchell interpolation is used.

The extinterpolation unit contains about 13 other interpolations, ready to use.

Enjoy,

and of course: remarks, comments welcome...

Michael.

Reply by email