How to resize images in Racket

I am making a game using racketand need a background image bitmap. But the image that I chose is too large. How to resize? What I have:

(bitmap/url "http://www.example.com/")
+3
source share
1 answer

Import this package:

(require htdp/image)

And use the shrink routines defined in this package.

EDIT:

As noted in the comments, 2htdp / image would be a better alternative:

(require 2htdp/image)

Take a look at the scale procedure .

+4
source

All Articles