BilevelImage
, ByteChannelImage
, Gray16Image
, Gray8Image
, GrayIntegerImage
, IntegerImage
, Paletted8Image
, PalettedIntegerImage
, RGB24Image
, RGB48Image
, RGBImage
, RGBIntegerImage
, ShortChannelImage
BufferedRGB24Image
, MemoryBilevelImage
, MemoryByteChannelImage
, MemoryGray16Image
, MemoryGray8Image
, MemoryPaletted8Image
, MemoryRGB24Image
, MemoryRGB48Image
, MemoryShortChannelImage
public interface PixelImage
Modifier and Type | Method | Description |
---|---|---|
PixelImage |
createCompatibleImage(int width,
int height) |
Creates an instance of the same class as this one, with width and height
given by the arguments.
|
PixelImage |
createCopy() |
Creates an new image object that will be of the same type as this one,
with the same image data, using entirely new resources.
|
long |
getAllocatedMemory() |
Returns the number of bytes that were dynamically allocated for
this image object.
|
int |
getBitsPerPixel() |
Returns the number of bits per pixel of this image.
|
int |
getHeight() |
Returns the vertical resolution of the image in pixels.
|
Class |
getImageType() |
If there is a single interface or class that describes the image data type
of this class, the
Class object associated with that
interface (or class) is returned (or null otherwise). |
int |
getNumChannels() |
Returns the number of channels in this image.
|
int |
getWidth() |
Returns the horizontal resolution of the image in pixels.
|
PixelImage createCompatibleImage(int width, int height)
width
- the horizontal resolution of the new imageheight
- the vertical resolution of the new imageIllegalArgumentException
- if width or height are smaller than onePixelImage createCopy()
long getAllocatedMemory()
int getBitsPerPixel()
int getHeight()
Class getImageType()
Class
object associated with that
interface (or class) is returned (or null
otherwise).
This Class
object, if available for two image objects,
can be used to find out if they are compatible.
Example: MemoryGray8Image
returns
net.sourceforge.jiu.data.Gray8Image.class
.int getNumChannels()
int getWidth()