Creates an empty Image with the same dimensions of this image.
Creates an empty Image with the same dimensions of this image.
a new Image that is a clone of this image but with uninitialized data
Creates a new image with the same data as this image.
Creates a new image with the same data as this image. Any operations to the copied image will not write back to the original.
A copy of this image.
Returns the pixel at the given coordinates.
Returns the pixel at the given coordinates.
the x coordinate of the pixel to grab
the y coordinate of the pixel to grab
the Pixel at the location
Returns the ARGB components for all pixels in this image
Returns the ARGB components for all pixels in this image
an array containing ARGB components in that order.
Returns the ARGB components for the pixel at the given coordinates
Returns the ARGB components for the pixel at the given coordinates
the x coordinate of the pixel component to grab
the y coordinate of the pixel component to grab
an array containing ARGB components in that order.
Returns the centre coordinates for the image.
Returns the color at the given coordinates.
Returns the color at the given coordinates.
the RGBColor value at the coords
Returns a set of the distinct colours used in this image.
Returns a set of the distinct colours used in this image.
the set of distinct Colors
Returns true if a pixel with the given color exists.
Returns true if a pixel with the given color exists.
the pixel colour to look for.
true if there exists at least one pixel that has the given pixels color
Counts the number of pixels with the given colour.
Counts the number of pixels with the given colour.
the colour to detect.
the number of pixels that matched the colour of the given pixel
Returns the number of pixels in the image.
Returns the number of pixels in the image.
the number of pixels
Returns the pixel at the given coordinates as a integer in RGB format.
Returns the pixel at the given coordinates as a integer in RGB format.
the pixel as an integer tuple
the ARGB value of the pixel
Returns a rectangular region within the given boundaries as a single dimensional array of integers.
Returns a rectangular region within the given boundaries as a single dimensional array of integers.
Eg, pixels(10, 10, 30, 20) would result in an array of size 600 with the first row of the region in indexes 0,..,29, second row 30,..,59 etc.
the start x coordinate
the start y coordinate
the width of the region
the height of the region
an Array of pixels for the region
Returns the aspect ratio for this image.
Operations that only read from the raster.