public class MemoryRGB24Image extends MemoryByteChannelImage implements RGB24Image
RGB24Image
INDEX_BLUE, INDEX_GREEN, INDEX_RED
Constructor and Description |
---|
MemoryRGB24Image(int width,
int height)
Creates a new object of this class, with width and height as
specified by the arguments.
|
Modifier and Type | Method and 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.
|
java.lang.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). |
checkPositionAndNumber, clear, clear, clear, clear, createCopy, getAllocatedMemory, getBitsPerPixel, getByteSample, getByteSample, getByteSamples, getHeight, getMaxSample, getNumChannels, getSample, getSample, getSamples, getWidth, putByteSample, putByteSample, putByteSamples, putSample, putSample, putSamples
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clear, clear, getByteSample, getByteSample, getByteSamples, putByteSample, putByteSample, putByteSamples
clear, clear, getMaxSample, getSample, getSample, getSamples, putSample, putSample, putSamples
createCopy, getAllocatedMemory, getBitsPerPixel, getHeight, getNumChannels, getWidth
public MemoryRGB24Image(int width, int height)
width
- the horizontal resolution of the new image in pixelsheight
- the vertical resolution of the new image in pixelspublic PixelImage createCompatibleImage(int width, int height)
PixelImage
createCompatibleImage
in interface PixelImage
createCompatibleImage
in class MemoryByteChannelImage
width
- the horizontal resolution of the new imageheight
- the vertical resolution of the new imagepublic java.lang.Class getImageType()
PixelImage
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
.getImageType
in interface PixelImage