Re: SVG as pict

Asumu Takikawa <[email protected]>
Newsgroups gmane.comp.lang.racket.user,gmane.lisp.scheme.plt
Message-ID <[email protected]>
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 p (svg-file->pict "plt-logo-red-flat.svg"))

  (show-pict p)
  (show-pict (scale p 1.5))

(Note: you may have to update the package for this to work since I
 just made some changes)

Cheers,
Asumu

-- 
You received this message because you are subscribed to the Google Groups "Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.