Re: drawing scaled images with cairomm



On 12/28/10 23:53, Christopher Harvey wrote:
> I've got the following code (pasted below) that stores a
> Cairo::RefPtr<Cairo::ImageSurface> created from a Gdk::PixBuf. When I
> draw this image it is about 30x30, and I want to be able to scale it up.
> I don't care too much about the filtering, but it would be cool if
> cariomm could do it for me rather than allocating tons of memory and
> scaling myself just to display a larger version of a 30x30 image. Again,
> I don't care about the filtering algorithm, I just can't figure it out
> in general from the docs....
> Thanks.

Got it...Cairo::SurfacePattern.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]