[racket-users] Scaling image with racket/draw?

2016-08-30 Thread Tobias Gerdin
(send bitmap get-width)]) (let ([dc (send bitmap make-dc)] [s (/ w orig-width)]) (send dc scale s s)) (send bitmap save-file out 'png What am I doing wrong? Regards, Tobias Gerdin Sweden -- You received this message because you are subscribed to the Goo

Re: [racket-users] Scaling image with racket/draw?

2016-08-31 Thread Tobias Gerdin
Right, that did it, thanks! 2016-08-31 14:19 GMT+02:00 WarGrey Gyoudmon Ju : > Try this example, > > (require racket/draw) > > (define bitmap-blank > (lambda [[w 0] [h #false] #:backing-scale [backing-scale 2.0]] > (define width (max 1 (exact-ceiling w))) > (define height (max 1 (exact

Re: [racket-users] Scaling image with racket/draw?

2016-08-31 Thread Tobias Gerdin
By visual inspection of an 1200 pixels image scaled to 0.5 using the above code any diferences are indistinguishable to my eye. 2016-08-31 22:40 GMT+02:00 Jens Axel Søgaard : > Is the result as good as ImageMagick? > > Den 31. aug. 2016 kl. 22.25 skrev Tobias Gerdin : > > Rig

[racket-users] Web-server and IDN

2016-09-20 Thread Tobias Gerdin
Hello, Thanks for Racket, it really is great. Is the web-server of production quality? Does it support IDN[1] hostnames? -Tobias [1]: https://en.wikipedia.org/wiki/Internationalized_domain_name -- You received this message because you are subscribed to the Google Groups "Racket Users" group.

Re: [racket-users] Web-server and IDN

2016-09-21 Thread Tobias Gerdin
> 20 sep. 2016 kl. 22:47 skrev Jay McCarthy : > > On Wed, Sep 21, 2016 at 5:39 AM, Tobias Gerdin wrote: >> Hello, >> >> Thanks for Racket, it really is great. >> >> Is the web-server of production quality? > > There are commercial sites that ar