net.sourceforge.jiu.color.promotion

Class PromotionRGB24


public class PromotionRGB24
extends ImageToImageOperation

Converts several image types to RGB. Promoting is a lossless operation that will only lead to an output image that holds the same image in a way that demands more memory.

If you give an image implementing RGB24Image to this operation, a WrongParameterException will be thrown. This operation could also return the input image, but this might lead to the wrong impression that a copy of the input was produced which can be modified without changing the original.

Author:
Marco Schmidt

Field Summary

Fields inherited from class net.sourceforge.jiu.ops.ImageToImageOperation

canInAndOutBeEqual, inputImage, outputImage

Fields inherited from class net.sourceforge.jiu.ops.Operation

abort, progressListeners

Method Summary

private void
prepare(PixelImage in)
void
process()
private void
process(BilevelImage in, RGB24Image out)
private void
process(Gray8Image in, RGB24Image out)
private void
process(Paletted8Image in, RGB24Image out)

Methods inherited from class net.sourceforge.jiu.ops.ImageToImageOperation

canInputAndOutputBeEqual, ensureImagesHaveSameResolution, ensureInputImageIsAvailable, ensureOutputImageResolution, getInputImage, getOutputImage, setCanInputAndOutputBeEqual, setInputImage, setOutputImage

Methods inherited from class net.sourceforge.jiu.ops.Operation

addProgressListener, addProgressListeners, getAbort, process, removeProgressListener, setAbort, setProgress, setProgress

Method Details

prepare

private void prepare(PixelImage in)
            throws MissingParameterException,
                   WrongParameterException

process

public void process()
            throws MissingParameterException,
                   WrongParameterException
Overrides:
process in interface Operation

process

private void process(BilevelImage in,
                     RGB24Image out)

process

private void process(Gray8Image in,
                     RGB24Image out)

process

private void process(Paletted8Image in,
                     RGB24Image out)