Re: [racket-users] Bitmaps and Canvas sizes

2018-08-12 Thread silverfire675
That works perfectly, thanks David! (define (resize-draw canvas0 bm) (let* ((dc (send canvas0 get-dc)) (t (send dc get-transformation))) (send dc scale (/ (send canvas0 get-width) (send bm get-width)) (/ (send canvas0 get-height) (send bm get-height))) (send dc

[racket-users] Bitmaps and Canvas sizes

2018-08-11 Thread silverfire675
(define image-box (new canvas% [parent frame] [min-width 300] [min-height 300])) I'm still trying to figure out how the racket/gui library works but I'm having some difficulty understanding how to have an image fill a canvas. I'd like for instance to have a canvas in my gui that

[racket-users] Windows Foreign Libraries

2018-03-23 Thread silverfire675
Really silly question but I was using the rsvg package with racket/gui on Linux and everything was working fine. I moved the code over to windows to try it out (after installing the rsvg package there) and it's complaining that librsvg-2.2.dll is missing. I've now tried two separate .dll