On 6/1/02 8:09 PM, the NSA intercepted the following message from "Joseph J.
Strout" <joe at realsoftware dot com>:
>>> 1) Are you sure Icon.Graphics is nil?
>>
>> Yes. If I try and do anything with Icon.graphics it dies, and the debugger
>> shows that it is nil. It's quite strange. I haven't yet tried your
>> suggestion, if it works then great, thank you, but what in the world is
>> causing .graphics to be nil?
>
> Lots of pictures don't have a non-nil Graphics property. This is the
> case for any picture you can't draw into. I missed the start of this
> thread... why do you find this surprising? Is "Icon" a picture
> created with NewPicture?
I didn't realize that. I was trying to get the color values of specific
pixels in a picture from a resource file. I guess I'll have to draw it into
a picture and get the values there.
Seth Willits
---------------------------------------------------------------------------
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com
"Few are those who see with their own eyes and feel with their own hearts."
-- Albert Einstein
---------------------------------------------------------------------------
|