[cairo] Re: Embeding JPG in PDF

Bill Spitzak spitzak at d2.com
Fri Jan 12 17:02:03 PST 2007


Sorry, my confusion. So the object being proposed is a pattern that 
takes a filename or a block of data in it's constructor, perhaps it is 
called "cairo_image_pattern_t", or "cairo_jpeg_pattern_t" for the 
version that can only do jpeg.

Carl Worth wrote:
> On Fri, 12 Jan 2007 16:26:28 -0800, Bill Spitzak wrote:
>> Aren't there already immutable surfaces in cairo, such as solid colors?
>> Or the gradients?
> 
> We call those "patterns". The defining aspect of a surface is that it
> can be the target for drawing.
>
>> The image should be whatever class can be passed to cairo_set_source.
> 
> That's cairo_pattern_t.


More information about the cairo mailing list