Package net.sourceforge.jiu.data
Class MemoryRGB24Image
java.lang.Object
net.sourceforge.jiu.data.MemoryByteChannelImage
net.sourceforge.jiu.data.MemoryRGB24Image
- All Implemented Interfaces:
ByteChannelImage
,IntegerImage
,PixelImage
,RGB24Image
,RGBImage
,RGBIndex
,RGBIntegerImage
A class to store 24 bit RGB truecolor images in memory.
- Author:
- Marco Schmidt
- See Also:
-
Field Summary
Fields inherited from interface net.sourceforge.jiu.data.RGBIndex
INDEX_BLUE, INDEX_GREEN, INDEX_RED
-
Constructor Summary
ConstructorsConstructorDescriptionMemoryRGB24Image
(int width, int height) Creates a new object of this class, with width and height as specified by the arguments. -
Method Summary
Modifier and TypeMethodDescriptioncreateCompatibleImage
(int width, int height) Creates an instance of the same class as this one, with width and height given by the arguments.If there is a single interface or class that describes the image data type of this class, theClass
object associated with that interface (or class) is returned (ornull
otherwise).Methods inherited from class net.sourceforge.jiu.data.MemoryByteChannelImage
checkPositionAndNumber, clear, clear, clear, clear, createCopy, getAllocatedMemory, getBitsPerPixel, getByteSample, getByteSample, getByteSamples, getHeight, getMaxSample, getNumChannels, getSample, getSample, getSamples, getWidth, putByteSample, putByteSample, putByteSamples, putSample, putSample, putSamples
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sourceforge.jiu.data.ByteChannelImage
clear, clear, getByteSample, getByteSample, getByteSamples, putByteSample, putByteSample, putByteSamples
Methods inherited from interface net.sourceforge.jiu.data.IntegerImage
clear, clear, getMaxSample, getSample, getSample, getSamples, putSample, putSample, putSamples
Methods inherited from interface net.sourceforge.jiu.data.PixelImage
createCopy, getAllocatedMemory, getBitsPerPixel, getHeight, getNumChannels, getWidth
-
Constructor Details
-
MemoryRGB24Image
public MemoryRGB24Image(int width, int height) Creates a new object of this class, with width and height as specified by the arguments.- Parameters:
width
- the horizontal resolution of the new image in pixelsheight
- the vertical resolution of the new image in pixels
-
-
Method Details
-
createCompatibleImage
Description copied from interface:PixelImage
Creates an instance of the same class as this one, with width and height given by the arguments.- Specified by:
createCompatibleImage
in interfacePixelImage
- Specified by:
createCompatibleImage
in classMemoryByteChannelImage
- Parameters:
width
- the horizontal resolution of the new imageheight
- the vertical resolution of the new image- Returns:
- the new image
-
getImageType
Description copied from interface:PixelImage
If there is a single interface or class that describes the image data type of this class, theClass
object associated with that interface (or class) is returned (ornull
otherwise). ThisClass
object, if available for two image objects, can be used to find out if they are compatible. Example:MemoryGray8Image
returnsnet.sourceforge.jiu.data.Gray8Image.class
.- Specified by:
getImageType
in interfacePixelImage
-