Function LockImage:TPixmap( image:TImage,frame=0,read_lock=True,write_lock=True ) Return image.Lock( frame,read_lock,write_lock ) End Function Function UnlockImage( image:TImage,frame=0 ) End Function
TImage.Lock doesn't make much sense either..
Method Lock:TPixmap( index,read,write ) If write seqs[index]=0 frames[index]=Null EndIf If Not pixmaps[index] pixmaps[index]=CreatePixmap( width,height,PF_RGBA8888 ) EndIf Return pixmaps[index] End Method
So, do we lock to get the pixmap and then setpixmap on the image..?