diff --git a/modules/mojo/graphics.monkey b/modules/mojo/graphics.monkey index 5680842b..7e35e0ad 100644 --- a/modules/mojo/graphics.monkey +++ b/modules/mojo/graphics.monkey @@ -129,6 +129,14 @@ Class Image device.WritePixels2 surface,pixels,x,y,width,height,offset,pitch End + Method GetSurface:Surface() + Return surface + End + + Method GetSurfaceRegion:Int[] (frame:Int = 0) + Return[frames[frame].x, frames[frame].y, width, height] + End + Private Const FullFrame=65536 '$10000