iText 8.0.5 API
iText.Kernel.Colors.PatternColor Class Reference

Representation of a Pattern Color. More...

Inheritance diagram for iText.Kernel.Colors.PatternColor:
iText.Kernel.Colors.Color

Public Member Functions

  PatternColor (PdfPattern coloredPattern)
  Creates a pattern color using the given color pattern object. More...
 
  PatternColor (PdfPattern.Tiling uncoloredPattern, Color color)
  Creates a pattern color using the given uncolored pattern object and color. More...
 
  PatternColor (PdfPattern.Tiling uncoloredPattern, PdfColorSpace underlyingCS, float[] colorValue)
  Creates a pattern color using the given uncolored pattern object, an underlying color space and color values. More...
 
  PatternColor (PdfPattern.Tiling uncoloredPattern, PdfSpecialCs.UncoloredTilingPattern uncoloredTilingCS, float[] colorValue)
  Creates a pattern color using the given uncolored pattern object, uncolored tiling pattern and color values. More...
 
virtual PdfPattern  GetPattern ()
  Returns the pattern of the color space. More...
 
override void  SetColorValue (float[] value)
  Sets the color value of the color More...
 
override bool  Equals (Object o)
 
- Public Member Functions inherited from iText.Kernel.Colors.Color
virtual int  GetNumberOfComponents ()
  Returns the number of color value components More...
 
virtual PdfColorSpace  GetColorSpace ()
  Returns the color space to which the color is related. More...
 
virtual float[]  GetColorValue ()
  Returns the color value of the color More...
 
override int  GetHashCode ()
 
override bool  Equals (Object o)
  Indicates whether the color is equal to the given color. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from iText.Kernel.Colors.Color
static iText.Kernel.Colors.Color  MakeColor (PdfColorSpace colorSpace)
  Makes a Color of certain color space. More...
 
static iText.Kernel.Colors.Color  MakeColor (PdfColorSpace colorSpace, float[] colorValue)
  Makes a Color of certain color space and color value. More...
 
static DeviceRgb  ConvertCmykToRgb (DeviceCmyk cmykColor)
  Converts DeviceCmyk color to DeviceRgb color More...
 
static DeviceCmyk  ConvertRgbToCmyk (DeviceRgb rgbColor)
  Converts DeviceRgb color to DeviceCmyk color More...
 
static iText.Kernel.Colors.Color  CreateColorWithColorSpace (float[] colorValue)
  Creates a color object based on the passed through values. More...
 
- Package Functions inherited from iText.Kernel.Colors.Color
  Color (PdfColorSpace colorSpace, float[] colorValue)
  Creates a Color of certain color space and color value. More...
 
- Package Attributes inherited from iText.Kernel.Colors.Color
PdfColorSpace  colorSpace
  The color space of the color More...
 
float[]  colorValue
  The color value of the color More...
 

Detailed Description

Representation of a Pattern Color.

Constructor & Destructor Documentation

◆ PatternColor() [1/4]

iText.Kernel.Colors.PatternColor.PatternColor ( PdfPattern  coloredPattern )
inline

Creates a pattern color using the given color pattern object.

Parameters
coloredPattern Color space that uses pattern objects

◆ PatternColor() [2/4]

iText.Kernel.Colors.PatternColor.PatternColor ( PdfPattern.Tiling  uncoloredPattern,
Color  color 
)
inline

Creates a pattern color using the given uncolored pattern object and color.

Parameters
uncoloredPattern Tiling pattern object of the color space
color Color object

◆ PatternColor() [3/4]

iText.Kernel.Colors.PatternColor.PatternColor ( PdfPattern.Tiling  uncoloredPattern,
PdfColorSpace  underlyingCS,
float[]  colorValue 
)
inline

Creates a pattern color using the given uncolored pattern object, an underlying color space and color values.

Parameters
uncoloredPattern Tiling pattern object of the color space
underlyingCS Underlying color space object
colorValue Color values

◆ PatternColor() [4/4]

iText.Kernel.Colors.PatternColor.PatternColor ( PdfPattern.Tiling  uncoloredPattern,
PdfSpecialCs.UncoloredTilingPattern  uncoloredTilingCS,
float[]  colorValue 
)
inline

Creates a pattern color using the given uncolored pattern object, uncolored tiling pattern and color values.

Parameters
uncoloredPattern Tiling pattern object of the color space
uncoloredTilingCS Tiling pattern color space
colorValue Color values

Member Function Documentation

◆ GetPattern()

virtual PdfPattern iText.Kernel.Colors.PatternColor.GetPattern ( )
inlinevirtual

Returns the pattern of the color space.

Returns
PdfPattern object

◆ SetColorValue()

override void iText.Kernel.Colors.PatternColor.SetColorValue ( float[]  value )
inlinevirtual

Sets the color value of the color

Parameters
value new color value

Reimplemented from iText.Kernel.Colors.Color.