Class PromotionRGB48
java.lang.Object
net.sourceforge.jiu.ops.Operation
net.sourceforge.jiu.ops.ImageToImageOperation
net.sourceforge.jiu.color.promotion.PromotionRGB48
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.
- Since:
- 0.12.0
- Author:
- Marco Schmidt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprepare(PixelImage in) voidprocess()This method does the actual work of the operation.private voidprocess(BilevelImage in, RGB48Image out) private voidprocess(Gray16Image in, RGB48Image out) private voidprocess(Gray8Image in, RGB48Image out) private voidprocess(Paletted8Image in, RGB48Image out) private voidprocess(RGB24Image in, RGB48Image out) Methods inherited from class net.sourceforge.jiu.ops.ImageToImageOperation
canInputAndOutputBeEqual, ensureImagesHaveSameResolution, ensureInputImageIsAvailable, ensureOutputImageResolution, getInputImage, getOutputImage, setCanInputAndOutputBeEqual, setInputImage, setOutputImageMethods inherited from class net.sourceforge.jiu.ops.Operation
addProgressListener, addProgressListeners, getAbort, removeProgressListener, setAbort, setProgress, setProgress
-
Constructor Details
-
PromotionRGB48
public PromotionRGB48()
-
-
Method Details
-
prepare
-
process
-
process
-
process
-
process
-
process
-
process
Description copied from class:OperationThis method does the actual work of the operation. It must be called after all parameters have been given to the operation object.- Overrides:
processin classOperation- Throws:
MissingParameterException- if any mandatory parameter was not given to the operationWrongParameterException- if at least one of the input parameters was not initialized appropriately (values out of the valid interval, etc.)
-