java.io.Serializable
, java.lang.Cloneable
, ImageDecodeParam
, ImageEncodeParam
public static class PNGEncodeParam.RGB extends PNGEncodeParam
PNGEncodeParam.Gray, PNGEncodeParam.Palette, PNGEncodeParam.RGB
bitDepth, bitDepthSet, INTENT_ABSOLUTE, INTENT_PERCEPTUAL, INTENT_RELATIVE, INTENT_SATURATION, PNG_FILTER_AVERAGE, PNG_FILTER_NONE, PNG_FILTER_PAETH, PNG_FILTER_SUB, PNG_FILTER_UP
Constructor | Description |
---|---|
RGB() |
Constructs an instance of
PNGEncodeParam.RGB . |
Modifier and Type | Method | Description |
---|---|---|
int[] |
getBackgroundRGB() |
Returns the RGB value of the suggested background color.
|
int[] |
getTransparentRGB() |
Returns the RGB value to be used to denote transparency.
|
boolean |
isBackgroundSet() |
Returns true if a 'bKGD' chunk will be output.
|
void |
setBackgroundRGB(int[] rgb) |
Sets the RGB value of the suggested background color.
|
void |
setBitDepth(int bitDepth) |
Sets the desired bit depth for an RGB image.
|
void |
setTransparentRGB(int[] transparentRGB) |
Sets the RGB value to be used to denote transparency.
|
void |
unsetBackground() |
Suppresses the 'bKGD' chunk from being output.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPrivateChunk, filterRow, getBitDepth, getChromaticity, getCompressedText, getDefaultEncodeParam, getGamma, getICCProfileData, getInterlacing, getModificationTime, getNumPrivateChunks, getPaletteHistogram, getPhysicalDimension, getPrivateChunkData, getPrivateChunkType, getSignificantBits, getSRGBIntent, getSuggestedPalette, getText, isChromaticitySet, isCompressedTextSet, isGammaSet, isICCProfileDataSet, isModificationTimeSet, isPaletteHistogramSet, isPhysicalDimensionSet, isSignificantBitsSet, isSRGBIntentSet, isSuggestedPaletteSet, isTextSet, isTransparencySet, paethPredictor, removeAllPrivateChunks, removeUnsafeToCopyPrivateChunks, setChromaticity, setChromaticity, setCompressedText, setGamma, setICCProfileData, setInterlacing, setModificationTime, setPaletteHistogram, setPhysicalDimension, setPhysicalDimension, setSignificantBits, setSRGBIntent, setSuggestedPalette, setText, unsetBitDepth, unsetChromaticity, unsetCompressedText, unsetGamma, unsetICCProfileData, unsetModificationTime, unsetPaletteHistogram, unsetPhysicalDimension, unsetSignificantBits, unsetSRGBIntent, unsetSuggestedPalette, unsetText, unsetTransparency
public void unsetBackground()
unsetBackground
in class PNGEncodeParam
public boolean isBackgroundSet()
isBackgroundSet
in class PNGEncodeParam
public void setBitDepth(int bitDepth)
setBitDepth
in class PNGEncodeParam
public void setBackgroundRGB(int[] rgb)
rgb
parameter should have 3 entries.
The 'bKGD' chunk will encode this information.
public int[] getBackgroundRGB()
If the background color has not previously been set, or has been
unset, an IllegalStateException
will be thrown.
java.lang.IllegalStateException
- if the background color is not set.public void setTransparentRGB(int[] transparentRGB)
Setting this attribute will cause the alpha channel of the input image to be ignored.
The 'tRNS' chunk will encode this information.
public int[] getTransparentRGB()
If the transparent color has not previously been set,
or has been unset, an IllegalStateException
will be thrown.
java.lang.IllegalStateException
- if the transparent color is not set.Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.