Creates a new Image which is a copy of the given image.
Creates a new Image which is a copy of the given image. Any operations to the new object do not affect the original image.
the image to copy
a new Image object.
Create a new Image from a byte stream.
Create a new Image from a byte stream. This is intended to create an image from an image format eg PNG, not from a stream of pixels.
the bytes from the format stream
a new Image
Create a new Image from an array of pixels.
Create a new Image from an array of pixels. The specified width and height must match the number of pixels.
a new Image
Create a new Image that is the given width and height with no initialization.
Create a new Image that is the given width and height with no initialization. This will usually result in a default black background (all pixel data defaulting to zeroes) but that is not guaranteed.
the width of the new image
the height of the new image
the new Image with the given width and height