<p dir="ltr"><br>
On Jun 21, 2013 6:42 PM, "Ratner, Logan" <<a href="mailto:logan.ratner@bluware.com">logan.ratner@bluware.com</a>> wrote:<br>
><br>
> I started to create the images to show the problem, and discovered that the problem isn't where I thought it was. What I describe below works. So, next question: Is this mailing list the right place for Poppler issues?</p>
<p dir="ltr">Might be, if its poppler with cairo.</p>
<p dir="ltr">><br>
> Logan<br>
><br>
> ________________________________________<br>
> From: Arjen Nienhuis<br>
> Sent: Thursday, June 20, 2013 2:12 PM<br>
> To: Ratner, Logan<br>
> Cc: <a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
> Subject: Re: [cairo] painting bitmaps onto a PDF surface<br>
><br>
> On Thu, Jun 20, 2013 at 7:37 PM, Ratner, Logan <<a href="mailto:logan.ratner@bluware.com">logan.ratner@bluware.com</a>> wrote:<br>
> > Hello,<br>
> ><br>
> > I am using Cairomm to create some images. I am trying to paint an<br>
> > ImageSurface onto a device surface, having written data into the surface.<br>
> > I'm doing this two ways, either by setting the ImageSurface as the source<br>
> > directly, or by creating a SurfacePattern from the ImageSurface. The image<br>
> > has two colors, one of which has an alpha of 0.<br>
> ><br>
> > Either way works fine if I use a PNG device surface, but if I try the exact<br>
> > same thing with a PDF device surface, the "invisible" color isn't invisible.<br>
><br>
> Can you show us the "I expected this" and the "I got this instead" images?<br>
><br>
> ><br>
> > As I research this I go back and forth between "this should just work" and<br>
> > "this is impossible" but surely there is a way to do what I need.<br>
> ><br>
> > Here's what I'm trying:<br>
> ><br>
> > RefPtr<ImageSurface> csurf = ImageSurface::create(FORMAT_ARGB32, s.height,<br>
> > s.width);<br>
> > /* code to write the image surface */<br>
> > RefPtr<SurfacePattern> fillpat = SurfacePattern::create(csurf)<br>
> > fillpat->set_extend(EXTEND_REPEAT);<br>
> > ctx.set_source(fillpat);<br>
> > ctx.paint();<br>
> ><br>
> > Or:<br>
> ><br>
> > RefPtr<ImageSurface> csurf = ImageSurface::create(FORMAT_ARGB32, s.height,<br>
> > s.width);<br>
> > /* code to write the image surface */<br>
> > ctx.set_source(meshimage, 0, 0);<br>
> > ctx.paint();<br>
> ><br>
> > Any help would be much appreciated.<br>
> > Thanks in advance,<br>
> ><br>
> > Logan<br>
> ><br>
> > --<br>
> > Logan Ratner | Senior Consultant | Bluware Inc.<br>
> > 16285 Park 10 Place Suite 300, Houston, TX 77084<br>
> > <a href="mailto:logan.ratner@bluware.com">logan.ratner@bluware.com</a> | P: 713.335.1524<br>
> > <a href="http://www.bluware.com">www.bluware.com</a> | We bring your vision to code.<br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > cairo mailing list<br>
> > <a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
> > <a href="http://lists.cairographics.org/mailman/listinfo/cairo">http://lists.cairographics.org/mailman/listinfo/cairo</a><br>
><br>
><br>
</p>