How To Change Image Sizes in Racket

坚强是说给别人听的谎言 提交于 2020-01-23 11:18:51

问题


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/")

回答1:


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.



来源:https://stackoverflow.com/questions/10318208/how-to-change-image-sizes-in-racket

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!