如何在球拍中更改图像尺寸 [英] How To Change Image Sizes in Racket
本文介绍了如何在球拍中更改图像尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用racket
进行游戏,并且需要背景bitmap
图像.但是我选择的图像太大.如何更改尺寸?我所拥有的:
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/")
推荐答案
导入此软件包:
(require htdp/image)
正如评论中指出的那样, 2htdp/image 是更好的选择:
As has been pointed out in the comments, 2htdp/image would be a better alternative:
(require 2htdp/image)
看看 查看全文