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
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