Context.readFrame

Reads the current frame pixels and returns it as a byte buffer of the desired format. The size of the returned image data is the same as the current window dimensions.

@param x The x coordinate @param y The y coordinate @param width The width @param height The height @param format The image format to return @return The byte array containing the pixel data, according to the provided format

class Context
abstract
ubyte[]
readFrame
(
uint x
,
uint y
,
uint width
,
uint height
,)

Meta