Grx.screen_get_context_size

@accepts(int, int)
@returns(int)
def screen_get_context_size(width, height):
    # Python wrapper for grx_screen_get_context_size()
  

Gets the total size in bytes required to store an image of width x height for the screen.

width

the width in pixels

height

the height in pixels

Returns