CreateImage doesn't set handle

Monkey Forums/Monkey Bug Reports/CreateImage doesn't set handle

Gerry Quinn(Posted 2013) [#1]
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


marksibly(Posted 2013) [#2]
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.


Gerry Quinn(Posted 2013) [#3]
Ah! I never thought of that!