Re: [racket-users] SVG as pict

2016-09-09 Thread Byron Davies
Yes, that does exactly what I needed — a fully scalable svg pict. Thank you! And the other discussants. Byron > On Sep 3, 2016, at 6:29 PM, Asumu Takikawa wrote: > > On 2016-09-03 20:53:59 +0200, Jens Axel Søgaard wrote: >> I took a quick look at the code of rsvg. It seems svg-bytes->pict does

Re: [racket-users] SVG as pict

2016-09-03 Thread Asumu Takikawa
On 2016-09-03 20:53:59 +0200, Jens Axel Søgaard wrote: > I took a quick look at the code of rsvg. It seems svg-bytes->pict does what > you want? Asumu: can you confirm this I think it should let you scale picts and have no pixelation. Like this: #lang racket (require pict rsvg) (define

Re: [racket-users] SVG as pict

2016-09-03 Thread Jens Axel Søgaard
I took a quick look at the code of rsvg. It seems svg-bytes->pict does what you want? Asumu: can you confirm this > Den 3. sep. 2016 kl. 09.36 skrev Byron Davies : > > svg images have a second-class status in Racket. If you want to use an svg > image in a drawing, it seems that you have to us

Re: [racket-users] SVG as pict

2016-09-03 Thread Robby Findler
Are you talking about dc<%> or something below that? If you are at the dc<%> level then you can interoperate with the rest of racket/gui library and things built on it more easily. Like picts. Robby On Saturday, September 3, 2016, Byron Davies wrote: > Are you suggesting translating the SVG rep

Re: [racket-users] SVG as pict

2016-09-03 Thread Byron Davies
Are you suggesting translating the SVG representation to pict drawing commands? I was thinking, instead, of handing the SVG information off to the platform drawing libraries, which I didn’t see as requiring XML parsing. Or is there another option? > On Sep 3, 2016, at 5:34 AM, Robby Findler w

Re: [racket-users] SVG as pict

2016-09-03 Thread Robby Findler
I think that would be fantastic. The drawing models are compatible, iiuc, so I think the main part is dealing with parsing the svg file. Robby On Sat, Sep 3, 2016 at 2:36 AM, Byron Davies wrote: > svg images have a second-class status in Racket. If you want to use an svg > image in a drawing,

[racket-users] SVG as pict

2016-09-03 Thread Byron Davies
svg images have a second-class status in Racket. If you want to use an svg image in a drawing, it seems that you have to use the RSVG package to load it from a file, which then renders it to a bitmap, subject to pixelation if scaled. How hard would it be to create an svg-pict primitive that yo