realbasic-nug
[Top] [All Lists]

Re: Picture Nil

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Picture Nil
From: support at monkeybreadsoftware dot de (Christian Schmitz)
Date: Sat, 1 Jun 2002 23:21:41 +0200
> Whenever run, it trips a NIL on the first access of a pixel. Icon.graphics,
> and Icon.RGBSurface are nil, but Icon is not Nil and I can't figure out why.

Sounds correct.
Just make a copy of your icon before into a newpicture's picture with 32
bit depth to have masks and RGBSurface working.

Mfg
Christian

-- 
Wenn ueber irgend eine dumme Sache Gras gewachsen ist, 
kommt bestimmt ein Kamel an und frisst es wieder weg.
http://www.christians-software.de (Kostenlose Mac/Win Software)


<Prev in Thread] Current Thread [Next in Thread>