thanks.

I was trying to help Connie with her language idea.

Her eyes lit up when I pasted a pic of a waffle into DrRacket

S.


On Fri, 19 Jul 2019 at 18:22, Laurent <laurent.ors...@gmail.com> wrote:

> Looks like your best bet is to save the pict as a bitmap in a separate
> file, then load it in your module and export this value.
> From the top of my head:
> where the pic is produced:
> (send (pict->bitmap my-pict) save-bitmap "path-to/the-bitmap-file.png"
> 'png)
> (or maybe: right click on the snip then save?)
> then
> (provide my-pic)
> (define my-pic (bitmap "path-to/the-bitmap-file.png"))
>
>
> On Fri, Jul 19, 2019 at 4:56 PM Stephen De Gabrielle <
> spdegabrie...@gmail.com> wrote:
>
>> Hi,
>> I'm trying to export an 'pict' image i have pasted in a DrRacket file,
>> e.g.
>> #lang racket
>> (require pict)
>> (define my-pasted-image <pasted image here>)
>> (provide  my-pasted-image )
>>
>> I can specify it in (provide ..) , but attempting to reference it causes
>> this error
>>
>> ../../../../Applications/Racket
>> v7.3/collects/racket/private/more-scheme.rkt:261:28: write: cannot marshal
>> value that is embedded in compiled code
>>   value: (object:image-snip% ...)
>> >
>>
>>
>> any ideas?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Racket Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to racket-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/racket-users/CAGHj7-%2B-cP2zYHSODSASqDGYb1NUPCDy_hscoT4RU5VqQhr%3D2A%40mail.gmail.com
>> <https://groups.google.com/d/msgid/racket-users/CAGHj7-%2B-cP2zYHSODSASqDGYb1NUPCDy_hscoT4RU5VqQhr%3D2A%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
----

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/CAGHj7-K-UX6WZ6Z0Z0Xm1_bm8RjKxrk7kJLX%3D-w_oOc3e0JGeg%40mail.gmail.com.

Reply via email to