hello <div>thank you for your replying</div><div>does your code works in your environment properly?</div><div>it works properly when I run without compiling </div><div>but when I try to compile, sort of error occur.</div><div>
so I change my style to </div><div>(define hero (bitmap "location of image"))</div><div>but it doesn't works either in other computer unless there is file in exactly same directory structure</div><div>the program refer to the absolute path I think.</div>
<div><br></div><div>well.. for my opinion, it should be fixed next version </div><div>which way is oriented to making executable easily</div><div><br><div class="gmail_quote">2010/10/10 Stephen Bloch <span dir="ltr"><<a href="mailto:sbloch@adelphi.edu">sbloch@adelphi.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">It sounds like what you really want is an .exe file that contains the image directly, so you don't have to worry about what directory the .exe file or the .bmp file are in. Fortunately, DrRacket recognizes images as literals: you can just copy and paste an image into the source code. So if I were doing this, I would probably write<br>
<br>
(define cauliflower [paste in an image of a cauliflower])<br>
...<br>
<div class="im">(define (dr n)<br>
(overlay (scale (/ (+ (modulo n 90) 1) 10)<br>
(rotate (modulo (* n n) 360)<br>
</div> cauliflower))<br>
<div class="im"> (square 500 "outline" "blue")))<br>
<br>
(animate dr)<br>
<br>
<br>
</div>Much simpler than using "bitmap" at run-time.<br>
<font color="#888888"><br>
Stephen Bloch<br>
<a href="mailto:sbloch@adelphi.edu">sbloch@adelphi.edu</a></font></blockquote></div><br></div>