Package com.datalogics.PDFL
Class ColorValueConverter
java.lang.Object
com.datalogics.PDFL.ColorValueConverter
This class contains methods used to convert sets of values from one Colorspace to another.
-
Constructor Summary
ConstructorsConstructorDescriptionThis class contains methods used to convert sets of values from one Colorspace to another. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]convertValues(ColorProfile sourceColorProfile, ColorProfile destinationColorProfile, RenderIntent intent, long numberOfInputValueSets, byte[] inputValueSets) Converts sets of values from a Source ColorSpace to a Destination colorspace using a specified Render Intent.byte[]convertValues(ColorProfile sourceColorProfile, String destinationColorProfilePath, RenderIntent intent, long numberOfInputValueSets, byte[] inputValueSets) Converts sets of values from a Source ColorSpace to a Destination colorspace using a specified Render Intent.byte[]convertValues(String sourceColorProfilePath, ColorProfile destinationColorProfile, RenderIntent intent, long numberOfInputValueSets, byte[] inputValueSets) Converts sets of values from a Source ColorSpace to a Destination colorspace using a specified Render Intent.byte[]convertValues(String sourceColorProfilePath, String destinationColorProfilePath, RenderIntent intent, long numberOfInputValueSets, byte[] inputValueSets) Converts sets of values from a Source ColorSpace to a Destination colorspace using a specified Render Intent.voiddelete()
-
Constructor Details
-
ColorValueConverter
public ColorValueConverter()This class contains methods used to convert sets of values from one Colorspace to another.
-
-
Method Details
-
delete
public void delete() -
convertValues
public byte[] convertValues(ColorProfile sourceColorProfile, ColorProfile destinationColorProfile, RenderIntent intent, long numberOfInputValueSets, byte[] inputValueSets) Converts sets of values from a Source ColorSpace to a Destination colorspace using a specified Render Intent.- Parameters:
sourceColorProfile- The Color Profile to be used for input values.destinationColorProfile- The Color Profile to be used for output values.intent- The Render Intent used during the conversion.numberOfInputValueSets- The number of sets of input values to be converted.inputValueSets- The input values to be converted which are divided into sets, e.g., invalid input: '<'255 140 0 0 120 0 60 0> would represent 2 sets of CMYK colors: [255 140 0 0] and [120 0 60 0] and numberOfInputValueSets should be 2.
-
convertValues
public byte[] convertValues(String sourceColorProfilePath, ColorProfile destinationColorProfile, RenderIntent intent, long numberOfInputValueSets, byte[] inputValueSets) Converts sets of values from a Source ColorSpace to a Destination colorspace using a specified Render Intent.- Parameters:
sourceColorProfilePath- The Color Profile to be used for input values, loaded from a path on disk.destinationColorProfile- The Color Profile to be used for output values.intent- The Render Intent used during the conversion.numberOfInputValueSets- The number of sets of input values to be converted.inputValueSets- The input values to be converted which are divided into sets, e.g., invalid input: '<'255 140 0 0 120 0 60 0> would represent 2 sets of CMYK colors: [255 140 0 0] and [120 0 60 0] and numberOfInputValueSets should be 2.
-
convertValues
public byte[] convertValues(ColorProfile sourceColorProfile, String destinationColorProfilePath, RenderIntent intent, long numberOfInputValueSets, byte[] inputValueSets) Converts sets of values from a Source ColorSpace to a Destination colorspace using a specified Render Intent.- Parameters:
sourceColorProfile- The Color Profile to be used for input values.destinationColorProfilePath- The Color Profile to be used for output values, loaded from a path on disk.intent- The Render Intent used during the conversion.numberOfInputValueSets- The number of sets of input values to be converted.inputValueSets- The input values to be converted which are divided into sets, e.g., invalid input: '<'255 140 0 0 120 0 60 0> would represent 2 sets of CMYK colors: [255 140 0 0] and [120 0 60 0] and numberOfInputValueSets should be 2.
-
convertValues
public byte[] convertValues(String sourceColorProfilePath, String destinationColorProfilePath, RenderIntent intent, long numberOfInputValueSets, byte[] inputValueSets) Converts sets of values from a Source ColorSpace to a Destination colorspace using a specified Render Intent.- Parameters:
sourceColorProfilePath- The Color Profile to be used for input values, loaded from a path on disk.destinationColorProfilePath- The Color Profile to be used for output values, loaded from a path on disk.intent- The Render Intent used during the conversion.numberOfInputValueSets- The number of sets of input values to be converted.inputValueSets- The input values to be converted which are divided into sets, e.g. invalid input: '<' 255 140 0 0 120 0 60 0 > would represent 2 sets of CMYK colors: [255 140 0 0] and [120 0 60 0] and numberOfInputValueSets should be 2.
-