# org.pdfclown.documents.contents.colorSpaces.IndexedColorSpace Class Reference

Indexed color space [PDF:1.6:4.5.5]. More...

Inheritance diagram for org.pdfclown.documents.contents.colorSpaces.IndexedColorSpace:

List of all members.

## Public Member Functions
virtual object | Clone (Document context)
| Gets a clone of the object, registered inside the given document context.
override object | Clone (Document context)
virtual bool | Delete ()
| Removes the object from its document context.
override bool | Equals (object obj)
Color | GetBaseColor (IndexedColor color)
| Gets the color corresponding to the specified table index resolved according to the base space.
override Color | GetColor (IList< PdfDirectObject > components, IContentContext context)
| Gets the color value corresponding to the specified components interpreted according to this color space [PDF:1.6:4.5.1].
override int | GetHashCode ()
override drawing::Brush | GetPaint (Color color)
| Gets the rendering representation of the specified color value.
## Static Public Member Functions
static PdfDirectObject | GetBaseObject (PdfObjectWrapper wrapper)
| Gets the PDF object backing the specified wrapper.
static ColorSpace | Wrap (PdfDirectObject baseObject)
| Wraps the specified color space base object into a color space object.
## Protected Member Functions
void | CheckCompatibility (object feature)
| Checks whether the specified feature is compatible with the document's conformance version.
virtual PdfString | RetrieveName ()
| Retrieves the name possibly associated to this object, walking through the document's name dictionary.
PdfDirectObject | RetrieveNamedBaseObject ()
| Retrieves the object name, if available; otherwise, behaves like PdfObjectWrapper.BaseObject.
## Properties
virtual PdfDirectObject | BaseObject`[get, set]`
ColorSpace | BaseSpace`[get]`
| Gets the base color space in which the values in the color table are to be interpreted.
override int | ComponentCount`[get]`
| Gets the number of components used to represent a color value.
PdfIndirectObject | Container`[get]`
| Gets the indirect object containing the base object.
PdfIndirectObject | DataContainer`[get]`
| Gets the indirect object containing the base data object.
override Color | DefaultColor`[get]`
| Gets the initial color value within this color space.
Document | Document`[get]`
| Gets the document context.
File | File`[get]`
| Gets the file context.

##

Indexed color space [PDF:1.6:4.5.5].

## Member Function Documentation

void org.pdfclown.objects.PdfObjectWrapper.CheckCompatibility | ( | object | feature | ) | `[protected, inherited]`

Checks whether the specified feature is compatible with the document's conformance version.

Parameters:

  | feature | Entity whose compatibility has to be checked. Supported types: VersionEnum Property name resolvable to an annotated getter method MemberInfo

virtual object org.pdfclown.objects.PdfObjectWrapper.Clone | ( | Document | context | ) | `[virtual, inherited]`

Gets a clone of the object, registered inside the given document context.

Parameters:

  | context | Which document the clone has to be registered in.

override object org.pdfclown.documents.contents.colorSpaces.IndexedColorSpace.Clone | ( | Document | context | ) |

virtual bool org.pdfclown.objects.PdfObjectWrapper.Delete | ( |  | ) | `[virtual, inherited]`

Removes the object from its document context.

The object is no more usable after this method returns.

Returns:
  Whether the object was actually decontextualized (only indirect objects can be decontextualize).

override bool org.pdfclown.objects.PdfObjectWrapper.Equals | ( | object | obj | ) | `[inherited]`

Color org.pdfclown.documents.contents.colorSpaces.IndexedColorSpace.GetBaseColor | ( | IndexedColor | color | ) |

Gets the color corresponding to the specified table index resolved according to the base space.

References org.pdfclown.documents.contents.colorSpaces.ColorSpace.ComponentCount, org.pdfclown.documents.contents.colorSpaces.ColorSpace.GetColor(), and org.pdfclown.documents.contents.colorSpaces.IndexedColor.Index.

static PdfDirectObject org.pdfclown.objects.PdfObjectWrapper.GetBaseObject | ( | PdfObjectWrapper< PdfDirectObject > | wrapper | ) | `[static, inherited]`

Gets the PDF object backing the specified wrapper.

Parameters:

  | wrapper | Object to extract the base from.

override Color org.pdfclown.documents.contents.colorSpaces.IndexedColorSpace.GetColor | ( | IList< PdfDirectObject > | components,
|  | IContentContext | context |
| ) |  |  | `[virtual]`

Gets the color value corresponding to the specified components interpreted according to this color space [PDF:1.6:4.5.1].

Parameters:

  | components | Color components.
  | context | Content context.

Implements org.pdfclown.documents.contents.colorSpaces.ColorSpace.

override int org.pdfclown.objects.PdfObjectWrapper.GetHashCode | ( |  | ) | `[inherited]`

override drawing::Brush org.pdfclown.documents.contents.colorSpaces.IndexedColorSpace.GetPaint | ( | Color | color | ) | `[virtual]`

Gets the rendering representation of the specified color value.

Parameters:

  | color | Color value to convert into an equivalent rendering representation.

Implements org.pdfclown.documents.contents.colorSpaces.ColorSpace.

virtual PdfString org.pdfclown.objects.PdfObjectWrapper.RetrieveName | ( |  | ) | `[protected, virtual, inherited]`

Retrieves the name possibly associated to this object, walking through the document's name dictionary.

PdfDirectObject org.pdfclown.objects.PdfObjectWrapper.RetrieveNamedBaseObject | ( |  | ) | `[protected, inherited]`

Retrieves the object name, if available; otherwise, behaves like PdfObjectWrapper.BaseObject.

static ColorSpace org.pdfclown.documents.contents.colorSpaces.ColorSpace.Wrap | ( | PdfDirectObject | baseObject | ) | `[static, inherited]`

Wraps the specified color space base object into a color space object.

Parameters:

  | baseObject | Base object of a color space object.

Returns:
  Color space object corresponding to the base object.

References org.pdfclown.objects.PdfObject.Resolve().

## Property Documentation

virtual PdfDirectObject org.pdfclown.objects.PdfObjectWrapper.BaseObject`[get, set, inherited]`

Gets the underlying reference object, if available; otherwise, gets the underlying data object.

ColorSpace org.pdfclown.documents.contents.colorSpaces.IndexedColorSpace.BaseSpace`[get]`

Gets the base color space in which the values in the color table are to be interpreted.

override int org.pdfclown.documents.contents.colorSpaces.IndexedColorSpace.ComponentCount`[get]`

Gets the number of components used to represent a color value.

Reimplemented from org.pdfclown.documents.contents.colorSpaces.ColorSpace.

PdfIndirectObject org.pdfclown.objects.PdfObjectWrapper.Container`[get, inherited]`

Gets the indirect object containing the base object.

PdfIndirectObject org.pdfclown.objects.PdfObjectWrapper.DataContainer`[get, inherited]`

Gets the indirect object containing the base data object.

override Color org.pdfclown.documents.contents.colorSpaces.IndexedColorSpace.DefaultColor`[get]`

Gets the initial color value within this color space.

Reimplemented from org.pdfclown.documents.contents.colorSpaces.ColorSpace.

Document org.pdfclown.objects.PdfObjectWrapper.Document`[get, inherited]`

Gets the document context.

File org.pdfclown.objects.PdfObjectWrapper.File`[get, inherited]`

Gets the file context.

Copyright 2006-2013 Stefano Chizzolini. For more information, please visit PDF Clown home page.