net.sourceforge.jiu.color.promotion

Class PromotionRGB48


public class PromotionRGB48
extends ImageToImageOperation

Converts several image types to RGB48Image. Promotion 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
Since:
0.12.0

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, RGB48Image out)
private void
process(Gray16Image in, RGB48Image out)
private void
process(Gray8Image in, RGB48Image out)
private void
process(Paletted8Image in, RGB48Image out)
private void
process(RGB24Image in, RGB48Image 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,
                     RGB48Image out)

process

private void process(Gray16Image in,
                     RGB48Image out)

process

private void process(Gray8Image in,
                     RGB48Image out)

process

private void process(Paletted8Image in,
                     RGB48Image out)

process

private void process(RGB24Image in,
                     RGB48Image out)