Grx.screen_get_context_size

function screen_get_context_size(width: Number(gint), height: Number(gint)): Number(gint) {
    // Gjs 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

the size in bytes.