Class AlternateColorSpace
java.lang.Object
org.loboevolution.pdfview.colorspace.PDFColorSpace
org.loboevolution.pdfview.colorspace.AlternateColorSpace
A color space that uses another color space to return values, and a
function to map between values in the input and input values to the
alternate color space
-
Field Summary
Fields inherited from class org.loboevolution.pdfview.colorspace.PDFColorSpace
COLORSPACE_CMYK, COLORSPACE_GRAY, COLORSPACE_PATTERN, COLORSPACE_RGB
-
Constructor Summary
ConstructorDescriptionAlternateColorSpace
(PDFColorSpace alternate, PDFFunction function) Creates a new instance of AlternateColorSpace -
Method Summary
Modifier and TypeMethodDescriptionget the original Java ColorSpace.********************************************************************** Get the PDF functionint
get the number of components expected in the getPaint commandgetPaint
(float[] components) get the PDFPaint representing the color described by the given color componentsMethods inherited from class org.loboevolution.pdfview.colorspace.PDFColorSpace
getColorSpace, getColorSpace
-
Constructor Details
-
AlternateColorSpace
Creates a new instance of AlternateColorSpace- Parameters:
alternate
- aPDFColorSpace
object.function
- aPDFFunction
object.
-
-
Method Details
-
getNumComponents
public int getNumComponents()get the number of components expected in the getPaint commandget the number of components expected in the getPaint command
- Overrides:
getNumComponents
in classPDFColorSpace
- Returns:
- a
Integer
object.
-
getPaint
get the PDFPaint representing the color described by the given color componentsget the PDFPaint representing the color described by the given color components
- Overrides:
getPaint
in classPDFColorSpace
- Parameters:
components
- the color components corresponding to the given colorspace- Returns:
- a PDFPaint object representing the closest Color to the given components.
-
getColorSpace
get the original Java ColorSpace.get the original Java ColorSpace.
- Overrides:
getColorSpace
in classPDFColorSpace
- Returns:
- a
ColorSpace
object.
-
getFunktion
********************************************************************** Get the PDF function- Returns:
- PDFFunction **********************************************************************
-