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
(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
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
3 matches
Mail list logo