---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/FunctionBasedShading
---

# FunctionBasedShading

## Overview

`FunctionBasedShading` is a class in Aspose.PDF FOSS for .NET.
Inherits from: `ShadingBase`.

Function-based shading (Type 1, §8.7.4.2).

Properties: `AntiAlias`, `BBox`, `Background`, `ColorSpaceName`, `Domain`, `Function`, and 1 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `ShadingType` | `ShadingType` | Read | Gets the shading type. |
| `Domain` | `double[]` | Read | Gets the domain. |
| `Function` | `PdfFunction?` | Read | Gets the function. |
| `ColorSpaceName` | `string` | Read | Colour space name for the shading's output. |
| `Background` | `double[]?` | Read | Background colour components, or null if absent. |
| `BBox` | `double[]?` | Read | Bounding box [xmin, ymin, xmax, ymax], or null if absent. |
| `AntiAlias` | `bool` | Read | Whether anti-aliasing is requested (advisory). |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)