# DrawParams Class

> Settings for rendering PDF pages as images.

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/DrawParams
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

```csharp
class DrawParams : SystemIDisposable
```

**Namespace:** `Datalogics::PDFL`

**Inherits from:** `SystemIDisposable`

## Description

Settings for rendering PDF pages as images.

This is used for rendering PDF pages to images, such as PNG or JPG files, to export to separate files or to send to a printer.

**Referenced by:** [`DrawParams`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/DrawParams.md), [`Page`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Page.md)

**Uses types:** [`CancelProc`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/CancelProc.md), [`ColorProfile`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/ColorProfile.md), [`ColorSpace`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/ColorSpace.md), [`DrawFlags`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/DrawFlags.md), [`DrawParams`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/DrawParams.md), [`Matrix`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Matrix.md), [`OptionalContentContext`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/OptionalContentContext.md), [`Rect`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/Rect.md), [`RenderIntent`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/RenderIntent.md), [`RenderProgressProc`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/RenderProgressProc.md), [`SmoothFlags`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/SmoothFlags.md)

## Constructors

### DrawParams

```csharp
Datalogics.PDFL.DrawParams.DrawParams()
```

*constructor*

Construct default DrawParams.

Initializes with DeviceRGB color space, relative colorimetric render intent, no smoothing, no draw flags, and no cancel or progress callbacks.

### DrawParams

```csharp
Datalogics.PDFL.DrawParams.DrawParams(DrawParams rhs)
```

*constructor*

**Parameters**

- `rhs` ([`DrawParams`](https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/class/DrawParams.md)): The DrawParams to copy from.

Copy constructor.

## Properties

### BypassCopyPerm

```csharp
bool Datalogics.PDFL.DrawParams.BypassCopyPerm { get; set; }
```

Bypass copy permissions. Only used when drawing to a bitmap.

### CancelProc

```csharp
CancelProc Datalogics.PDFL.DrawParams.CancelProc { get; set; }
```

Get the cancel callback for rendering operations.

### ColorSpace

```csharp
ColorSpace Datalogics.PDFL.DrawParams.ColorSpace { get; set; }
```

The color space in which the bitmap data is represented.

Must be one of DeviceGray, DeviceRGB, DeviceRGBA, DeviceCMYK, Lab, or LabA. Only used when drawing to a bitmap.

### DestRect

```csharp
Rect Datalogics.PDFL.DrawParams.DestRect { get; set; }
```

The rectangle of the bitmap in device space coordinates.

Only used when drawing to a bitmap.

### EnableBlackPointCompensation

```csharp
bool Datalogics.PDFL.DrawParams.EnableBlackPointCompensation { get; set; }
```

Enable/disable black point compensation.

### EnableThinLineHeuristics

```csharp
bool Datalogics.PDFL.DrawParams.EnableThinLineHeuristics { get; set; }
```

Enable/disable thin line adjustments when drawing rectangles

### Flags

```csharp
DrawFlags Datalogics.PDFL.DrawParams.Flags { get; set; }
```

Drawing flags.

### ICCProfile

```csharp
ColorProfile Datalogics.PDFL.DrawParams.ICCProfile { get; set; }
```

The ICC Profile of the colorspace to be used for rendering, from a known value.

NOTE: The ICCProfileCustomPath must not be set for this property to be used. The profile must be compatible with the ColorSpace property value, which can't be set to ICCBased either.

### ICCProfileCustomPath

```csharp
string Datalogics.PDFL.DrawParams.ICCProfileCustomPath { get; set; }
```

The ICC Profile of the colorspace to be used for rendering, from a custom file path.

NOTE: The ICCProfile is ignored when this property is a non-empty string. The profile must be compatible with the ColorSpace property value, which can't be set to ICCBased either.

### Matrix

```csharp
Matrix Datalogics.PDFL.DrawParams.Matrix { get; set; }
```

The matrix to concatenate onto the default page matrix.

Useful for converting from page to window coordinates and for scaling.

### OptionalContentContext

```csharp
OptionalContentContext Datalogics.PDFL.DrawParams.OptionalContentContext { get; set; }
```

Get the optional-content context used for visibility state information.

### ProgressProc

```csharp
RenderProgressProc Datalogics.PDFL.DrawParams.ProgressProc { get; set; }
```

Get the progress callback for rendering operations.

### RenderIntent

```csharp
RenderIntent Datalogics.PDFL.DrawParams.RenderIntent { get; set; }
```

Default rendering intent is RelColorimetric (relative colorimetric). Only used when drawing to a bitmap.

### SmoothFlags

```csharp
SmoothFlags Datalogics.PDFL.DrawParams.SmoothFlags { get; set; }
```

Smoothing flags. Only used when drawing to a bitmap.

### UpdateRect

```csharp
Rect Datalogics.PDFL.DrawParams.UpdateRect { get; set; }
```

The rectangle specifying the area to draw.

A rectangle represented by the coordinates of its four sides. If unset (degenerate), the page's CropBox is used instead.

## Methods

### Dispose

```csharp
void Datalogics.PDFL.DrawParams.Dispose()
```

**Returns:** `void`
