[cairo] Disabling filtering when scaling a bitmap

Alexander Shulgin alex.shulgin at gmail.com
Wed Apr 7 04:15:42 PDT 2010


On Wed, Apr 7, 2010 at 11:03, Greg Lowe <greg at vis.net.nz> wrote:
> Hi all,
>
> I would like to paint an image surface scaled 4x, and use no filter
> when scaling, so that the image appears blocky.

Will cairo_pattern_set_filter() and CAIRO_FILTER_NEAREST do the trick?

--
Alex


More information about the cairo mailing list