groups, images in SVG backend

Hello, I put a patch in the tracker that implements groups

    > in the SVG backend. Is that the preferred way to submit
    > patches, or should I just mail them?

Since we're just talking about a single file, I think mailing them
directly to me is the easiest way for now. BTW, the attachment didn't
go through on the Tracker.

    > I've also been working on images. SVG has an image tag
    > where you can include a external .png file. I used some
    > code from the GTK backend to save an image as a png, then
    > included, as shown below.

I think you'll be better off following the lead of how backend PS
handles image drawing, which has no GTK dependence. I don't think you
need to use GTK or PNG as an intermediary. You may want to get a
fresh CVS checkout because there was a screwup in the width/height
dimensions in earlier versions that has been fixed.

Glad to see you're making progress!

JDH

    > Hello, I put a patch in the tracker that implements groups
    > in the SVG backend. Is that the preferred way to submit
    > patches, or should I just mail them?

Since we're just talking about a single file, I think mailing them
directly to me is the easiest way for now. BTW, the attachment didn't
go through on the Tracker.

Oops...the groups patch is hopefully attached to this message.

    > I've also been working on images. SVG has an image tag
    > where you can include a external .png file. I used some
    > code from the GTK backend to save an image as a png, then
    > included, as shown below.

I think you'll be better off following the lead of how backend PS
handles image drawing, which has no GTK dependence. I don't think you
need to use GTK or PNG as an intermediary. You may want to get a
fresh CVS checkout because there was a screwup in the width/height
dimensions in earlier versions that has been fixed.

I don't see any obvious way to directly include a bitmap in SVG, but
I'll keep looking.

groups.diff (1.79 KB)

···

On Tue, 2004-06-08 at 16:47, John Hunter wrote: