4

I am making a game using racket and need a background bitmap image. But the image I have selected is too big. How do I change the size? What I have:

(bitmap/url "http://www.example.com/")
soegaard
  • 30,661
  • 4
  • 57
  • 106
Darth Bobo
  • 43
  • 7

1 Answers1

5

Import this package:

(require htdp/image)

And use the shrink procedures defined in that package.

EDIT :

As has been pointed out in the comments, 2htdp/image would be a better alternative:

(require 2htdp/image)

Take a look at the scale procedure.

Óscar López
  • 232,561
  • 37
  • 312
  • 386
  • 3
    The htdp/image is deprecated, so it's probably better to recommend the `scale` function in the 2htdp/image library. – dyoo Apr 25 '12 at 15:43