Gets the pixel at the specified coordinates.
The x-coordinate of the pixel.
The y-coordinate of the pixel.
The pixel at the specified coordinates, or undefined if the coordinates are out of bounds.
Sets the pixel at the specified coordinates.
The x-coordinate of the pixel.
The y-coordinate of the pixel.
The pixel to set.
Saves the OCIF image to a buffer.
The OCIF encoding method to use. Can be 5, 6, 7, or 8. Defaults to 8.
A buffer containing the OCIF image data.
Converts the OCIF image to a PNG buffer.
The scale factor for the output PNG. Defaults to 1.
A buffer containing the PNG image data.
StaticfromLoads an OCIF image from a buffer.
The buffer containing the OCIF image data.
A new OCIF instance.
Represents an OCIF (OpenComputers Image Format) image. This class provides methods to create, manipulate, load, and save OCIF images.