net.sourceforge.jiu.data

Class MemoryRGB24Image

Implemented Interfaces:
ByteChannelImage, IntegerImage, PixelImage, RGB24Image, RGBImage, RGBIndex, RGBIntegerImage

public class MemoryRGB24Image
extends MemoryByteChannelImage
implements RGB24Image

A class to store 24 bit RGB truecolor images in memory.
Author:
Marco Schmidt
See Also:
RGB24Image

Field Summary

Fields inherited from class net.sourceforge.jiu.data.MemoryByteChannelImage

data, firstChannel, height, numChannels, numPixels, width

Fields inherited from interface net.sourceforge.jiu.data.RGBIndex

INDEX_BLUE, INDEX_GREEN, INDEX_RED

Constructor Summary

MemoryRGB24Image(int width, int height)
Creates a new object of this class, with width and height as specified by the arguments.

Method Summary

PixelImage
createCompatibleImage(int width, int height)
Class
getImageType()

Methods inherited from class net.sourceforge.jiu.data.MemoryByteChannelImage

checkPositionAndNumber, clear, clear, clear, clear, createCompatibleImage, createCopy, getAllocatedMemory, getBitsPerPixel, getByteSample, getByteSample, getByteSamples, getHeight, getMaxSample, getNumChannels, getSample, getSample, getSamples, getWidth, putByteSample, putByteSample, putByteSamples, putSample, putSample, putSamples

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 pixels
height - the vertical resolution of the new image in pixels

Method Details

createCompatibleImage

public PixelImage createCompatibleImage(int width,
                                        int height)
Specified by:
createCompatibleImage in interface PixelImage
Overrides:
createCompatibleImage in interface MemoryByteChannelImage

getImageType

public Class getImageType()
Specified by:
getImageType in interface PixelImage