OK, bitmap is what I was looking for. Thanks. --Mitch<br><br><div class="gmail_quote">On Tue, Jun 29, 2010 at 5:28 PM, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu">robby@eecs.northwestern.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">If you use File|Insert image... you end up getting an image-snip<%><br>
object. It is a wrapper around a bitmap% object that connects to our<br>
editor classes. A bitmap% object is the raw bits plus a little bit of<br>
information about it.<br>
<br>
Probably you just want to use 2htdp/image's 'bitmap' function, tho.<br>
(Or maybe htdp/image's).<br>
<font color="#888888"><br>
Robby<br>
</font><div class="im"><br>
On Tue, Jun 29, 2010 at 4:22 PM, Mitchell Wand <<a href="mailto:wand@ccs.neu.edu">wand@ccs.neu.edu</a>> wrote:<br>
</div><div><div></div><div class="h5">> Silly question: How can I read a file and treat its contents as an image?<br>
> eg, I'd like to say something like:<br>
><br>
> (define cat-image (read-image "cat-image.png"))<br>
><br>
> The immediate advantage of doing this, rather than Insert|Image is that I<br>
> can keep my .rkt file in text form, so I can use other tools on it. And of<br>
> course if I want to find an image dynamically I need something like this.<br>
><br>
> I can't even see what datatype a value defined by Insert|Image is.<br>
><br>
> --Mitch<br>
><br>
><br>
><br>
</div></div><div><div></div><div class="h5">> _________________________________________________<br>
> For list-related administrative tasks:<br>
> <a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
><br>
<br>
</div></div></blockquote></div><br>