Added two methods to the monkey Image class so module developers can have more access to images.
GetSurface() just returns the images surface object
GetSurfaceRegion(frame:int=0) returns the x,y,width,height the image/frame takes up in the images surface.
These two are very useful methods and I have used for for stuff like saving images to photo gallery on iOS. For example I could convert a monkey image to UIImage with something like:
Local region := image.GetSurfaceRegion()
SaveNativeFunction(image.GetSurface(), region[0],region[1],region[2],region[3],"blah.png")
Added two methods to the monkey Image class so module developers can have more access to images. GetSurface() just returns the images surface object GetSurfaceRegion(frame:int=0) returns the x,y,width,height the image/frame takes up in the images surface.
These two are very useful methods and I have used for for stuff like saving images to photo gallery on iOS. For example I could convert a monkey image to UIImage with something like: