CreateImage doesn't set handle
Monkey Forums/Monkey Bug Reports/CreateImage doesn't set handle
| ||
I found this on V69 so my apologies if you fixed it! The alternative possibility is that writePixels resets the handle.blackSquare = CreateImage( 64, 64, Image.MidHandle ) For Local i:Int = 0 Until 4096 arr[ i ] = $FF000000 Next blackSquare.WritePixels( arr, 0, 0, 64, 64 ) 'blackSquare.SetHandle( 32.0, 32.0 ) The image will have the default top-left handle unless I uncomment the last line with SetHandle |
| ||
It's a docs error! CreateImage should be: Function CreateImage:Image( width:Int,height:Int,frameCount:Int,flags:Int ) frameCount is missing from docs...fixed for next release. |
| ||
Ah! I never thought of that! |