# Ink Class

> The ink object represents the color in the color space, CYMK or RGB.

- Product: Adobe PDF Library 18
- Language: Java
- Version: APDFL18.0.5PlusP2e
- HTML page: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Ink
- Version index: https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/llms.txt

```java
class Ink
```

**Namespace:** `com::datalogics::PDFL`

## Description

The ink object represents the color in the color space, CYMK or RGB.

**Referenced by:** [`InkVector`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/InkVector.md), [`Page`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/Page.md), [`SeparationColorSpace`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/SeparationColorSpace.md), [`SeparationPlate`](https://docs.datalogics.com/apdfl18/Java/APDFL18.0.5PlusP2e/class/SeparationPlate.md)

## Methods

### delete

```java
synchronized void com.datalogics.PDFL.Ink.delete(Boolean disposing)
```

*protected*

**Parameters**

- `disposing` (`Boolean`)

**Returns:** `synchronized void`

### delete

```java
synchronized void com.datalogics.PDFL.Ink.delete()
```

**Returns:** `synchronized void`

### finalize

```java
void com.datalogics.PDFL.Ink.finalize()
```

*protected*

**Returns:** `void`

### getAlias

```java
String com.datalogics.PDFL.Ink.getAlias()
```

**Returns:** `String`

An alternate name (alias) for this colorant.

### getAngle

```java
double com.datalogics.PDFL.Ink.getAngle()
```

**Returns:** `double`

The halftone screen angle for this ink, in degrees.

### getBlack

```java
double com.datalogics.PDFL.Ink.getBlack()
```

**Returns:** `double`

The black component of the CMYK color swatch.

### getBlue

```java
int com.datalogics.PDFL.Ink.getBlue()
```

**Returns:** `int`

The blue component of the RGB color swatch for on-screen display.

### getColorantName

```java
String com.datalogics.PDFL.Ink.getColorantName()
```

**Returns:** `String`

The name of the colorant from the Separation or DeviceN color space, or the process color name.

### getColorantNameArray

```java
byte[] com.datalogics.PDFL.Ink.getColorantNameArray()
```

**Returns:** `byte[]`

The name of the colorant as a byte array. The name of the colorant from the Separation or DeviceN color space, or the process color name. This property is suitable for retrieving the name when the ColorantName cannot be retrieved as a string.

### getCyan

```java
double com.datalogics.PDFL.Ink.getCyan()
```

**Returns:** `double`

The cyan component of the CMYK color swatch.

### getDensity

```java
double com.datalogics.PDFL.Ink.getDensity()
```

**Returns:** `double`

The neutral density of this ink.

### getFrequency

```java
double com.datalogics.PDFL.Ink.getFrequency()
```

**Returns:** `double`

The halftone screen frequency for this ink, in lines per inch.

### getGreen

```java
int com.datalogics.PDFL.Ink.getGreen()
```

**Returns:** `int`

The green component of the RGB color swatch for on-screen display.

### getInkType

```java
InkTypes com.datalogics.PDFL.Ink.getInkType()
```

**Returns:** `InkTypes`

The ink type of this ink, used for trapping.

### getIsProcessColor

```java
boolean com.datalogics.PDFL.Ink.getIsProcessColor()
```

**Returns:** `boolean`

Whether this ink represents a process color or a spot color. True if this is a process color, false if this is a spot color.

### getMagenta

```java
double com.datalogics.PDFL.Ink.getMagenta()
```

**Returns:** `double`

The magenta component of the CMYK color swatch.

### getPreviewOption

```java
SeparationPreviewOptions com.datalogics.PDFL.Ink.getPreviewOption()
```

**Returns:** `SeparationPreviewOptions`

How the colorant is handled during a separation preview.

### getRed

```java
int com.datalogics.PDFL.Ink.getRed()
```

**Returns:** `int`

The red component of the RGB color swatch for on-screen display.

### getYellow

```java
double com.datalogics.PDFL.Ink.getYellow()
```

**Returns:** `double`

The yellow component of the CMYK color swatch.

### setAlias

```java
void com.datalogics.PDFL.Ink.setAlias(String theAlias)
```

**Parameters**

- `theAlias` (`String`)

**Returns:** `void`

An alternate name (alias) for this colorant.

### setAngle

```java
void com.datalogics.PDFL.Ink.setAngle(double theAngle)
```

**Parameters**

- `theAngle` (`double`)

**Returns:** `void`

The halftone screen angle for this ink, in degrees.

### setColorantName

```java
void com.datalogics.PDFL.Ink.setColorantName(String theColorantName)
```

**Parameters**

- `theColorantName` (`String`)

**Returns:** `void`

The name of the colorant from the Separation or DeviceN color space, or the process color name.

### setDensity

```java
void com.datalogics.PDFL.Ink.setDensity(double theDensity)
```

**Parameters**

- `theDensity` (`double`)

**Returns:** `void`

The neutral density of this ink.

### setFrequency

```java
void com.datalogics.PDFL.Ink.setFrequency(double theFrequency)
```

**Parameters**

- `theFrequency` (`double`)

**Returns:** `void`

The halftone screen frequency for this ink, in lines per inch.

### setInkType

```java
void com.datalogics.PDFL.Ink.setInkType(InkTypes theInkType)
```

**Parameters**

- `theInkType` (`InkTypes`)

**Returns:** `void`

The ink type of this ink, used for trapping.

### setIsProcessColor

```java
void com.datalogics.PDFL.Ink.setIsProcessColor(boolean theSetting)
```

**Parameters**

- `theSetting` (`boolean`)

**Returns:** `void`

Whether this ink represents a process color or a spot color. True if this is a process color, false if this is a spot color.

### setPreviewOption

```java
void com.datalogics.PDFL.Ink.setPreviewOption(SeparationPreviewOptions thePreviewOption)
```

**Parameters**

- `thePreviewOption` (`SeparationPreviewOptions`)

**Returns:** `void`

How the colorant is handled during a separation preview.
