[plt-scheme] pict->image

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Wed Dec 23 11:19:26 EST 2009

Try (send dc clear) before calling draw-pict.

Robby

On Wed, Dec 23, 2009 at 2:31 AM, Jordan Johnson <jmj at fellowhuman.com> wrote:
> Ohh, right; the distinction of new vs. make-object was always tripping me
> up.  Sorry -- I did mean make-object there.
>
> Beyond that, I'm not sure where the all-black image is coming from (possibly
> related to masks?), so I'll defer to the real experts here.
>
> Best,
> jmj
>
> On Dec 22, 2009, at 10:56 PM, Mark Engelberg wrote:
>
>> Hmmm, (new image-snip% b) gives an error.  (make-object image-snip% b)
>> runs, but just returns an all-black image.
>>
>> On Tue, Dec 22, 2009 at 10:32 PM, Jordan Johnson <jmj at fellowhuman.com>
>> wrote:
>>>
>>> Mark,
>>>
>>> I believe what you have to do, rather than return b, is return (new
>>> image-snip% b).
>>>
>>> jmj
>>>
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>


Posted on the users mailing list.