<div dir="ltr">how can we get the insert menu in frame<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 16, 2013 at 12:26 PM, Danny Yoo <span dir="ltr"><<a href="mailto:dyoo@hashcollision.org" target="_blank">dyoo@hashcollision.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Apr 16, 2013 at 12:32 AM, deepak verma<br>
<<a href="mailto:deepakverma14021994@gmail.com">deepakverma14021994@gmail.com</a>> wrote:<br>
> how will i extract the image from tcp-connect ?<br>
><br>
</div><div class="im">> actually i was talking about objects of image-snip class<br>
<br>
</div>[Aside: Please use your email client's "Reply to All" feature.]<br>
<br>
<br>
Ok, good, that's much more specific.<br>
<br>
Have you read the documentation on image snips?<br>
<br>
<a href="http://docs.racket-lang.org/gui/image-snip_.html" target="_blank">http://docs.racket-lang.org/gui/image-snip_.html</a><br>
<br>
An image snip has a get-bitmap method that returns a bitmap% instance:<br>
<br>
<a href="http://docs.racket-lang.org/gui/image-snip_.html#%28meth._%28%28%28lib._racket%2Fsnip..rkt%29._image-snip~25%29._get-bitmap%29%29" target="_blank">http://docs.racket-lang.org/gui/image-snip_.html#%28meth._%28%28%28lib._racket%2Fsnip..rkt%29._image-snip~25%29._get-bitmap%29%29</a><br>
<br>
after which the results of the previous email apply: use a bitmap's<br>
save-file method to serialize to an output port.<br>
<br>
<br>
To restore a bitmap from the input port, use the second version of the<br>
bitmap%'s constructor (the second one out of the three):<br>
<br>
<a href="http://docs.racket-lang.org/draw/bitmap_.html#(constructor._((lib._racket/draw..rkt)._bitmap~25))" target="_blank">http://docs.racket-lang.org/draw/bitmap_.html#(constructor._((lib._racket/draw..rkt)._bitmap~25))</a><br>
<br>
The second version of the bitmap% constructor consumes an input port.<br>
</blockquote></div><br></div>