Class ColorValueConverter

java.lang.Object
com.datalogics.PDFL.ColorValueConverter

public class ColorValueConverter extends Object
This class contains methods used to convert sets of values from one Colorspace to another.
  • Constructor Summary

    Constructors
    Constructor
    Description
    This class contains methods used to convert sets of values from one Colorspace to another.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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.
    void
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.