Fill Class
Contains PDF fill settings for solid, pattern, and shading fills.
Declaration
public abstract class Fill extends JavaObject implements ICloneable
Remarks
The following code snippet adds a triangle to a page:
import com.devexpress.docs.pdf.*;
import com.devexpress.drawing.*;
import com.devexpress.system.drawing.*;
import com.devexpress.drawing.printing.*;
import java.nio.channels.*;
import java.nio.file.*;
public class Main {
public static void main(String[] args) throws Exception {
// Create a new PDF document.
try (PdfDocument pdfDocument = new PdfDocument()) {
// Add a Letter-size page to the document.
Page page = pdfDocument.getPages().add(DXPaperKind.LETTER);
// Create a triangle geometry.
GraphicsPath triangle = new GraphicsPath(new PointF(50, 500));
triangle.appendLineSegment(new PointF(50, 300));
triangle.appendLineSegment(new PointF(250, 300));
triangle.setClosed(true);
// Create a path fragment for a triangle shape.
PathFragment triangleFragment = new PathFragment();
// Assign geometry to the fragment.
triangleFragment.getPaths().add(triangle);
// Specify how the shape is rendered (fill + outline).
triangleFragment.setAction(PathShapeAction.FILL_AND_STROKE);
// Set fill and outline colors.
triangleFragment.setFill(Fill.createSolid(PdfColor.getOrange()));
triangleFragment.setOutline(
Outline.create(Fill.createSolid(PdfColor.getDarkOrange())));
// Add the shape to the page.
page.addFragment(triangleFragment);
// Save the document to a PDF file.
try (WritableByteChannel writableByteChannel =
FileChannel.open(Path.of("result.pdf"),
StandardOpenOption.CREATE,
StandardOpenOption.WRITE,
StandardOpenOption.TRUNCATE_EXISTING)) {
pdfDocument.save(writableByteChannel);
}
}
}
}
Implements
Inherited Members
Inheritance
Methods
createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity) Method
Creates an axial shading fill with the specified color space, axis points, functions, domain, extension settings, bounding box, anti-alias setting, background color, transformation matrix, and opacity.
Declaration
public static AxialShadingFill createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| axisStart | com.devexpress.system.drawing.PointF | The start point. |
| axisEnd | com.devexpress.system.drawing.PointF | The end point. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
| extendEnd | boolean | The end extension setting. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The transformation matrix. |
| opacity | The fill opacity. |
Returns
| Type | Description |
|---|---|
| AxialShadingFill | An axial shading fill. |
createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix) Method
Creates an axial shading fill with the specified color space, axis points, functions, domain, extension settings, bounding box, anti-alias setting, background color, and transformation matrix.
Declaration
public static AxialShadingFill createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| axisStart | com.devexpress.system.drawing.PointF | The start point. |
| axisEnd | com.devexpress.system.drawing.PointF | The end point. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
| extendEnd | boolean | The end extension setting. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The transformation matrix. |
Returns
| Type | Description |
|---|---|
| AxialShadingFill | An axial shading fill. |
createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias, PdfColor background) Method
Creates an axial shading fill with the specified color space, axis points, functions, domain, extension settings, bounding box, anti-alias setting, and background color.
Declaration
public static AxialShadingFill createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias, PdfColor background)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| axisStart | com.devexpress.system.drawing.PointF | The start point. |
| axisEnd | com.devexpress.system.drawing.PointF | The end point. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
| extendEnd | boolean | The end extension setting. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
Returns
| Type | Description |
|---|---|
| AxialShadingFill | An axial shading fill. |
createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias) Method
Creates an axial shading fill with the specified color space, axis points, functions, domain, extension settings, bounding box, and anti-alias setting.
Declaration
public static AxialShadingFill createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| axisStart | com.devexpress.system.drawing.PointF | The start point. |
| axisEnd | com.devexpress.system.drawing.PointF | The end point. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
| extendEnd | boolean | The end extension setting. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
Returns
| Type | Description |
|---|---|
| AxialShadingFill | An axial shading fill. |
createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox) Method
Creates an axial shading fill with the specified color space, axis points, functions, domain, extension settings, and bounding box.
Declaration
public static AxialShadingFill createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| axisStart | com.devexpress.system.drawing.PointF | The start point. |
| axisEnd | com.devexpress.system.drawing.PointF | The end point. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
| extendEnd | boolean | The end extension setting. |
| boundingBox | RectangleF | The bounds. |
Returns
| Type | Description |
|---|---|
| AxialShadingFill | An axial shading fill. |
createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd) Method
Creates an axial shading fill with the specified color space, axis points, functions, domain, and extension settings.
Declaration
public static AxialShadingFill createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| axisStart | com.devexpress.system.drawing.PointF | The start point. |
| axisEnd | com.devexpress.system.drawing.PointF | The end point. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
| extendEnd | boolean | The end extension setting. |
Returns
| Type | Description |
|---|---|
| AxialShadingFill | An axial shading fill. |
createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart) Method
Creates an axial shading fill with the specified color space, axis points, functions, domain, and start extension setting.
Declaration
public static AxialShadingFill createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain, boolean extendStart)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| axisStart | com.devexpress.system.drawing.PointF | The start point. |
| axisEnd | com.devexpress.system.drawing.PointF | The end point. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
Returns
| Type | Description |
|---|---|
| AxialShadingFill | An axial shading fill. |
createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain) Method
Creates an axial shading fill with the specified color space, axis points, functions, and domain.
Declaration
public static AxialShadingFill createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions, Range domain)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| axisStart | com.devexpress.system.drawing.PointF | The start point. |
| axisEnd | com.devexpress.system.drawing.PointF | The end point. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
Returns
| Type | Description |
|---|---|
| AxialShadingFill | An axial shading fill. |
createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions) Method
Creates an axial shading fill with the specified color space, axis points, and functions.
Declaration
public static AxialShadingFill createAxialShading(ColorSpace colorSpace, PointF axisStart, PointF axisEnd, List<CustomFunction> functions)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| axisStart | com.devexpress.system.drawing.PointF | The start point. |
| axisEnd | com.devexpress.system.drawing.PointF | The end point. |
| functions | java.util.List<CustomFunction> | The custom functions. |
Returns
| Type | Description |
|---|---|
| AxialShadingFill | An axial shading fill. |
createCoonsPatchMeshShading(ColorSpace colorSpace, Iterable<CoonsShadingPatch> patches, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity) Method
Creates a Coons patch mesh shading fill with the specified color space, patches, bounding box, anti-alias setting, background color, transformation matrix, and opacity.
Declaration
public static CoonsPatchMeshShadingFill createCoonsPatchMeshShading(ColorSpace colorSpace, Iterable<CoonsShadingPatch> patches, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| patches | java.lang.Iterable<CoonsShadingPatch> | The Coons shading patches. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The matrix. |
| opacity | The fill opacity. |
Returns
| Type | Description |
|---|---|
| CoonsPatchMeshShadingFill | A Coons patch mesh shading fill. |
createCoonsPatchMeshShading(ColorSpace colorSpace, Iterable<CoonsShadingPatch> patches, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix) Method
Creates a Coons patch mesh shading fill with the specified color space, patches, bounding box, anti-alias setting, background color, and transformation matrix.
Declaration
public static CoonsPatchMeshShadingFill createCoonsPatchMeshShading(ColorSpace colorSpace, Iterable<CoonsShadingPatch> patches, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| patches | java.lang.Iterable<CoonsShadingPatch> | The Coons shading patches. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The matrix. |
Returns
| Type | Description |
|---|---|
| CoonsPatchMeshShadingFill | A Coons patch mesh shading fill. |
createCoonsPatchMeshShading(ColorSpace colorSpace, Iterable<CoonsShadingPatch> patches, RectangleF boundingBox, boolean antiAlias, PdfColor background) Method
Creates a Coons patch mesh shading fill with the specified color space, patches, bounding box, anti-alias setting, and background color.
Declaration
public static CoonsPatchMeshShadingFill createCoonsPatchMeshShading(ColorSpace colorSpace, Iterable<CoonsShadingPatch> patches, RectangleF boundingBox, boolean antiAlias, PdfColor background)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| patches | java.lang.Iterable<CoonsShadingPatch> | The Coons shading patches. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
Returns
| Type | Description |
|---|---|
| CoonsPatchMeshShadingFill | A Coons patch mesh shading fill. |
createCoonsPatchMeshShading(ColorSpace colorSpace, Iterable<CoonsShadingPatch> patches, RectangleF boundingBox, boolean antiAlias) Method
Creates a Coons patch mesh shading fill with the specified color space, patches, bounding box, and anti-alias setting.
Declaration
public static CoonsPatchMeshShadingFill createCoonsPatchMeshShading(ColorSpace colorSpace, Iterable<CoonsShadingPatch> patches, RectangleF boundingBox, boolean antiAlias)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| patches | java.lang.Iterable<CoonsShadingPatch> | The Coons shading patches. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
Returns
| Type | Description |
|---|---|
| CoonsPatchMeshShadingFill | A Coons patch mesh shading fill. |
createCoonsPatchMeshShading(ColorSpace colorSpace, Iterable<CoonsShadingPatch> patches, RectangleF boundingBox) Method
Creates a Coons patch mesh shading fill with the specified color space, patches, and bounding box.
Declaration
public static CoonsPatchMeshShadingFill createCoonsPatchMeshShading(ColorSpace colorSpace, Iterable<CoonsShadingPatch> patches, RectangleF boundingBox)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| patches | java.lang.Iterable<CoonsShadingPatch> | The Coons shading patches. |
| boundingBox | RectangleF | The bounds. |
Returns
| Type | Description |
|---|---|
| CoonsPatchMeshShadingFill | A Coons patch mesh shading fill. |
createCoonsPatchMeshShading(ColorSpace colorSpace, Iterable<CoonsShadingPatch> patches) Method
Creates a Coons patch mesh shading fill with the specified color space and patches.
Declaration
public static CoonsPatchMeshShadingFill createCoonsPatchMeshShading(ColorSpace colorSpace, Iterable<CoonsShadingPatch> patches)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| patches | java.lang.Iterable<CoonsShadingPatch> | The Coons shading patches. |
Returns
| Type | Description |
|---|---|
| CoonsPatchMeshShadingFill | A Coons patch mesh shading fill. |
createFreeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity) Method
Creates a free-form Gouraud mesh shading fill with the specified color space, triangles, bounding box, anti-alias setting, background color, transformation matrix, and opacity.
Declaration
public static FreeFormGouraudMeshShadingFill createFreeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| triangles | java.lang.Iterable<ShadingTriangle> | The shading triangles. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The matrix. |
| opacity | The fill opacity. |
Returns
| Type | Description |
|---|---|
| FreeFormGouraudMeshShadingFill | A free-form Gouraud mesh shading fill. |
createFreeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix) Method
Creates a free-form Gouraud mesh shading fill with the specified color space, triangles, bounding box, anti-alias setting, background color, and transformation matrix.
Declaration
public static FreeFormGouraudMeshShadingFill createFreeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| triangles | java.lang.Iterable<ShadingTriangle> | The shading triangles. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The matrix. |
Returns
| Type | Description |
|---|---|
| FreeFormGouraudMeshShadingFill | A free-form Gouraud mesh shading fill. |
createFreeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, RectangleF boundingBox, boolean antiAlias, PdfColor background) Method
Creates a free-form Gouraud mesh shading fill with the specified color space, triangles, bounding box, anti-alias setting, and background color.
Declaration
public static FreeFormGouraudMeshShadingFill createFreeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, RectangleF boundingBox, boolean antiAlias, PdfColor background)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| triangles | java.lang.Iterable<ShadingTriangle> | The shading triangles. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
Returns
| Type | Description |
|---|---|
| FreeFormGouraudMeshShadingFill | A free-form Gouraud mesh shading fill. |
createFreeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, RectangleF boundingBox, boolean antiAlias) Method
Creates a free-form Gouraud mesh shading fill with the specified color space, triangles, bounding box, and anti-alias setting.
Declaration
public static FreeFormGouraudMeshShadingFill createFreeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, RectangleF boundingBox, boolean antiAlias)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| triangles | java.lang.Iterable<ShadingTriangle> | The shading triangles. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
Returns
| Type | Description |
|---|---|
| FreeFormGouraudMeshShadingFill | A free-form Gouraud mesh shading fill. |
createFreeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, RectangleF boundingBox) Method
Creates a free-form Gouraud mesh shading fill with the specified color space, triangles, and bounding box.
Declaration
public static FreeFormGouraudMeshShadingFill createFreeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, RectangleF boundingBox)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| triangles | java.lang.Iterable<ShadingTriangle> | The shading triangles. |
| boundingBox | RectangleF | The bounds. |
Returns
| Type | Description |
|---|---|
| FreeFormGouraudMeshShadingFill | A free-form Gouraud mesh shading fill. |
createFreeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles) Method
Creates a free-form Gouraud mesh shading fill with the specified color space and triangles.
Declaration
public static FreeFormGouraudMeshShadingFill createFreeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| triangles | java.lang.Iterable<ShadingTriangle> | The shading triangles. |
Returns
| Type | Description |
|---|---|
| FreeFormGouraudMeshShadingFill | A free-form Gouraud mesh shading fill. |
createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX, Range domainY, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity) Method
Creates a function-based shading fill with the specified color space, functions, domain ranges, bounding box, anti-alias setting, background color, transformation matrix, and opacity.
Declaration
public static FunctionBasedShadingFill createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX, Range domainY, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domainX | Range | The X domain range. |
| domainY | Range | The Y domain range. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The matrix. |
| opacity | The fill opacity. |
Returns
| Type | Description |
|---|---|
| FunctionBasedShadingFill | A function-based shading fill. |
createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX, Range domainY, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix) Method
Creates a function-based shading fill with the specified color space, functions, domain ranges, bounding box, anti-alias setting, background color, and transformation matrix.
Declaration
public static FunctionBasedShadingFill createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX, Range domainY, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domainX | Range | The X domain range. |
| domainY | Range | The Y domain range. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The matrix. |
Returns
| Type | Description |
|---|---|
| FunctionBasedShadingFill | A function-based shading fill. |
createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX, Range domainY, RectangleF boundingBox, boolean antiAlias, PdfColor background) Method
Creates a function-based shading fill with the specified color space, functions, domain ranges, bounding box, anti-alias setting, and background color.
Declaration
public static FunctionBasedShadingFill createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX, Range domainY, RectangleF boundingBox, boolean antiAlias, PdfColor background)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domainX | Range | The X domain range. |
| domainY | Range | The Y domain range. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
Returns
| Type | Description |
|---|---|
| FunctionBasedShadingFill | A function-based shading fill. |
createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX, Range domainY, RectangleF boundingBox, boolean antiAlias) Method
Creates a function-based shading fill with the specified color space, functions, domain ranges, bounding box, and anti-alias setting.
Declaration
public static FunctionBasedShadingFill createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX, Range domainY, RectangleF boundingBox, boolean antiAlias)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domainX | Range | The X domain range. |
| domainY | Range | The Y domain range. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
Returns
| Type | Description |
|---|---|
| FunctionBasedShadingFill | A function-based shading fill. |
createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX, Range domainY, RectangleF boundingBox) Method
Creates a function-based shading fill with the specified color space, functions, domain ranges, and bounding box.
Declaration
public static FunctionBasedShadingFill createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX, Range domainY, RectangleF boundingBox)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domainX | Range | The X domain range. |
| domainY | Range | The Y domain range. |
| boundingBox | RectangleF | The bounds. |
Returns
| Type | Description |
|---|---|
| FunctionBasedShadingFill | A function-based shading fill. |
createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX, Range domainY) Method
Creates a function-based shading fill with the specified color space, functions, and domain ranges.
Declaration
public static FunctionBasedShadingFill createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX, Range domainY)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domainX | Range | The X domain range. |
| domainY | Range | The Y domain range. |
Returns
| Type | Description |
|---|---|
| FunctionBasedShadingFill | A function-based shading fill. |
createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX) Method
Creates a function-based shading fill with the specified color space, functions, and X-domain range.
Declaration
public static FunctionBasedShadingFill createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions, Range domainX)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domainX | Range | The X domain range. |
Returns
| Type | Description |
|---|---|
| FunctionBasedShadingFill | A function-based shading fill. |
createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions) Method
Creates a function-based shading fill with the specified color space and functions.
Declaration
public static FunctionBasedShadingFill createFunctionBasedShading(ColorSpace colorSpace, List<CustomFunction> functions)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| functions | java.util.List<CustomFunction> | The custom functions. |
Returns
| Type | Description |
|---|---|
| FunctionBasedShadingFill | A function-based shading fill. |
createLatticeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, int verticesPerRow, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity) Method
Creates a lattice-form Gouraud mesh shading fill with the specified color space, triangles, vertices-per-row value, bounding box, anti-alias setting, background color, transformation matrix, and opacity.
Declaration
public static LatticeFormGouraudMeshShadingFill createLatticeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, int verticesPerRow, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| triangles | java.lang.Iterable<ShadingTriangle> | The shading triangles. |
| verticesPerRow | int | The vertices per row. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The matrix. |
| opacity | The fill opacity. |
Returns
| Type | Description |
|---|---|
| LatticeFormGouraudMeshShadingFill | A lattice-form Gouraud mesh shading fill. |
createLatticeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, int verticesPerRow, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix) Method
Creates a lattice-form Gouraud mesh shading fill with the specified color space, triangles, vertices-per-row value, bounding box, anti-alias setting, background color, and transformation matrix.
Declaration
public static LatticeFormGouraudMeshShadingFill createLatticeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, int verticesPerRow, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| triangles | java.lang.Iterable<ShadingTriangle> | The shading triangles. |
| verticesPerRow | int | The vertices per row. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The matrix. |
Returns
| Type | Description |
|---|---|
| LatticeFormGouraudMeshShadingFill | A lattice-form Gouraud mesh shading fill. |
createLatticeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, int verticesPerRow, RectangleF boundingBox, boolean antiAlias, PdfColor background) Method
Creates a lattice-form Gouraud mesh shading fill with the specified color space, triangles, vertices-per-row value, bounding box, anti-alias setting, and background color.
Declaration
public static LatticeFormGouraudMeshShadingFill createLatticeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, int verticesPerRow, RectangleF boundingBox, boolean antiAlias, PdfColor background)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| triangles | java.lang.Iterable<ShadingTriangle> | The shading triangles. |
| verticesPerRow | int | The vertices per row. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
Returns
| Type | Description |
|---|---|
| LatticeFormGouraudMeshShadingFill | A lattice-form Gouraud mesh shading fill. |
createLatticeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, int verticesPerRow, RectangleF boundingBox, boolean antiAlias) Method
Creates a lattice-form Gouraud mesh shading fill with the specified color space, triangles, vertices-per-row value, bounding box, and anti-alias setting.
Declaration
public static LatticeFormGouraudMeshShadingFill createLatticeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, int verticesPerRow, RectangleF boundingBox, boolean antiAlias)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| triangles | java.lang.Iterable<ShadingTriangle> | The shading triangles. |
| verticesPerRow | int | The vertices per row. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
Returns
| Type | Description |
|---|---|
| LatticeFormGouraudMeshShadingFill | A lattice-form Gouraud mesh shading fill. |
createLatticeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, int verticesPerRow, RectangleF boundingBox) Method
Creates a lattice-form Gouraud mesh shading fill with the specified color space, triangles, vertices-per-row value, and bounding box.
Declaration
public static LatticeFormGouraudMeshShadingFill createLatticeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, int verticesPerRow, RectangleF boundingBox)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| triangles | java.lang.Iterable<ShadingTriangle> | The shading triangles. |
| verticesPerRow | int | The vertices per row. |
| boundingBox | RectangleF | The bounds. |
Returns
| Type | Description |
|---|---|
| LatticeFormGouraudMeshShadingFill | A lattice-form Gouraud mesh shading fill. |
createLatticeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, int verticesPerRow) Method
Creates a lattice-form Gouraud mesh shading fill with the specified color space, triangles, and vertices-per-row value.
Declaration
public static LatticeFormGouraudMeshShadingFill createLatticeFormGouraudMeshShading(ColorSpace colorSpace, Iterable<ShadingTriangle> triangles, int verticesPerRow)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| triangles | java.lang.Iterable<ShadingTriangle> | The shading triangles. |
| verticesPerRow | int | The vertices per row. |
Returns
| Type | Description |
|---|---|
| LatticeFormGouraudMeshShadingFill | A lattice-form Gouraud mesh shading fill. |
createPattern(PatternTemplate template, ColorSpace underlyingColorSpace, PdfColor underlyingPdfColor, @Nullable Double opacity) Method
Creates a pattern fill with the specified pattern template, underlying color space, underlying PDF color, and opacity.
Declaration
public static PatternFill createPattern(PatternTemplate template, ColorSpace underlyingColorSpace, PdfColor underlyingPdfColor, @Nullable Double opacity)
Parameters
| Name | Type | Description |
|---|---|---|
| template | PatternTemplate | The pattern template. |
| underlyingColorSpace | ColorSpace | The underlying color space. |
| underlyingPdfColor | PdfColor | The underlying PDF color. |
| opacity | The fill opacity. |
Returns
| Type | Description |
|---|---|
| PatternFill | A pattern fill. |
createPattern(PatternTemplate template, ColorSpace underlyingColorSpace, PdfColor underlyingPdfColor) Method
Creates a pattern fill with the specified pattern template, underlying color space, and underlying PDF color.
Declaration
public static PatternFill createPattern(PatternTemplate template, ColorSpace underlyingColorSpace, PdfColor underlyingPdfColor)
Parameters
| Name | Type | Description |
|---|---|---|
| template | PatternTemplate | The pattern template. |
| underlyingColorSpace | ColorSpace | The underlying color space. |
| underlyingPdfColor | PdfColor | The underlying PDF color. |
Returns
| Type | Description |
|---|---|
| PatternFill | A pattern fill. |
createPattern(PatternTemplate template, ColorSpace underlyingColorSpace) Method
Creates a pattern fill with the specified pattern template and underlying color space.
Declaration
public static PatternFill createPattern(PatternTemplate template, ColorSpace underlyingColorSpace)
Parameters
| Name | Type | Description |
|---|---|---|
| template | PatternTemplate | The pattern template. |
| underlyingColorSpace | ColorSpace | The underlying color space. |
Returns
| Type | Description |
|---|---|
| PatternFill | A pattern fill. |
Remarks
The following code snippet creates a PatternTemplate that defines a reusable tiling pattern with custom content fragments. The example applies the pattern as a fill for a PDF shape and saves the resulting document.

package pdf;
import com.devexpress.docs.pdf.*;
import com.devexpress.system.drawing.*;
import com.devexpress.drawing.printing.*;
import java.io.*;
import java.nio.file.*;
public class Main {
public static void main(String[] args) throws Exception {
try (PdfDocument document = new PdfDocument()) {
Page page = document.getPages().add(DXPaperKind.LETTER);
// Create a pattern template.
PatternTemplate patternTemplate = new PatternTemplate();
// Define the pattern cell bounds.
patternTemplate.setBoundingBox(new RectangleF(0, 0, 50, 50));
// Define the distance between pattern cells.
patternTemplate.setXStep(50);
patternTemplate.setYStep(50);
// Specify that the pattern defines its own colors.
patternTemplate.setColored(true);
// Create a fragment that draws a rectangle in the pattern cell.
PathFragment patternFragment = PathFragment.rectangle(10, 10, 30, 30);
patternFragment.setAction(PathShapeAction.FILL);
// Set the pattern element fill color.
patternFragment.setFill(
Fill.createSolid(PdfColor.getDarkOrange())
);
// Add the fragment to the pattern template.
patternTemplate.getFragments().add(patternFragment);
// Create a triangle geometry.
GraphicsPath triangle = new GraphicsPath(new PointF(50, 500));
triangle.appendLineSegment(new PointF(50, 300));
triangle.appendLineSegment(new PointF(250, 300));
triangle.setClosed(true);
// Create a path fragment for a triangle shape.
PathFragment triangleFragment = new PathFragment();
// Assign geometry to the fragment.
triangleFragment.getPaths().add(triangle);
// Specify that the triangle displays both fill and outline.
triangleFragment.setAction(PathShapeAction.FILL_AND_STROKE);
// Apply the pattern template as the triangle fill.
triangleFragment.setFill(Fill.createPattern(patternTemplate, ColorSpace.getDeviceRGB()));
// Set the triangle outline color.
triangleFragment.setOutline(
Outline.create(Fill.createSolid(PdfColor.getDarkOrange())));
// Add the triangle to the page.
page.addFragment(triangleFragment);
// Save the PDF document.
try (OutputStream stream =
Files.newOutputStream(
Path.of("Result.pdf"))) {
document.save(stream);
}
}
}
}
createPattern(PatternTemplate template) Method
Creates a pattern fill with the specified pattern template.
Declaration
public static PatternFill createPattern(PatternTemplate template)
Parameters
| Name | Type | Description |
|---|---|---|
| template | PatternTemplate | The pattern template. |
Returns
| Type | Description |
|---|---|
| PatternFill | A pattern fill. |
createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity) Method
Creates a radial shading fill with the specified color space, circle geometry, functions, domain, extension settings, bounding box, anti-alias setting, background color, transformation matrix, and opacity.
Declaration
public static RadialShadingFill createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| startingCircleCenter | com.devexpress.system.drawing.PointF | The start circle center. |
| startingCircleRadius | double | The start circle radius. |
| endingCircleCenter | com.devexpress.system.drawing.PointF | The end circle center. |
| endingCircleRadius | double | The end circle radius. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
| extendEnd | boolean | The end extension setting. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The transformation matrix. |
| opacity | The fill opacity. |
Returns
| Type | Description |
|---|---|
| RadialShadingFill | A radial shading fill. |
createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix) Method
Creates a radial shading fill with the specified color space, circle geometry, functions, domain, extension settings, bounding box, anti-alias setting, background color, and transformation matrix.
Declaration
public static RadialShadingFill createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| startingCircleCenter | com.devexpress.system.drawing.PointF | The start circle center. |
| startingCircleRadius | double | The start circle radius. |
| endingCircleCenter | com.devexpress.system.drawing.PointF | The end circle center. |
| endingCircleRadius | double | The end circle radius. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
| extendEnd | boolean | The end extension setting. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The transformation matrix. |
Returns
| Type | Description |
|---|---|
| RadialShadingFill | A radial shading fill. |
createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias, PdfColor background) Method
Creates a radial shading fill with the specified color space, circle geometry, functions, domain, extension settings, bounding box, anti-alias setting, and background color.
Declaration
public static RadialShadingFill createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias, PdfColor background)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| startingCircleCenter | com.devexpress.system.drawing.PointF | The start circle center. |
| startingCircleRadius | double | The start circle radius. |
| endingCircleCenter | com.devexpress.system.drawing.PointF | The end circle center. |
| endingCircleRadius | double | The end circle radius. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
| extendEnd | boolean | The end extension setting. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
Returns
| Type | Description |
|---|---|
| RadialShadingFill | A radial shading fill. |
createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias) Method
Creates a radial shading fill with the specified color space, circle geometry, functions, domain, extension settings, bounding box, and anti-alias setting.
Declaration
public static RadialShadingFill createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox, boolean antiAlias)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| startingCircleCenter | com.devexpress.system.drawing.PointF | The start circle center. |
| startingCircleRadius | double | The start circle radius. |
| endingCircleCenter | com.devexpress.system.drawing.PointF | The end circle center. |
| endingCircleRadius | double | The end circle radius. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
| extendEnd | boolean | The end extension setting. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
Returns
| Type | Description |
|---|---|
| RadialShadingFill | A radial shading fill. |
createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox) Method
Creates a radial shading fill with the specified color space, circle geometry, functions, domain, extension settings, and bounding box.
Declaration
public static RadialShadingFill createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd, RectangleF boundingBox)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| startingCircleCenter | com.devexpress.system.drawing.PointF | The start circle center. |
| startingCircleRadius | double | The start circle radius. |
| endingCircleCenter | com.devexpress.system.drawing.PointF | The end circle center. |
| endingCircleRadius | double | The end circle radius. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
| extendEnd | boolean | The end extension setting. |
| boundingBox | RectangleF | The bounds. |
Returns
| Type | Description |
|---|---|
| RadialShadingFill | A radial shading fill. |
createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd) Method
Creates a radial shading fill with the specified color space, circle geometry, functions, domain, and extension settings.
Declaration
public static RadialShadingFill createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart, boolean extendEnd)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| startingCircleCenter | com.devexpress.system.drawing.PointF | The start circle center. |
| startingCircleRadius | double | The start circle radius. |
| endingCircleCenter | com.devexpress.system.drawing.PointF | The end circle center. |
| endingCircleRadius | double | The end circle radius. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
| extendEnd | boolean | The end extension setting. |
Returns
| Type | Description |
|---|---|
| RadialShadingFill | A radial shading fill. |
createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart) Method
Creates a radial shading fill with the specified color space, circle geometry, functions, domain, and start extension setting.
Declaration
public static RadialShadingFill createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain, boolean extendStart)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| startingCircleCenter | com.devexpress.system.drawing.PointF | The start circle center. |
| startingCircleRadius | double | The start circle radius. |
| endingCircleCenter | com.devexpress.system.drawing.PointF | The end circle center. |
| endingCircleRadius | double | The end circle radius. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
| extendStart | boolean | The start extension setting. |
Returns
| Type | Description |
|---|---|
| RadialShadingFill | A radial shading fill. |
createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain) Method
Creates a radial shading fill with the specified color space, circle geometry, functions, and domain.
Declaration
public static RadialShadingFill createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions, Range domain)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| startingCircleCenter | com.devexpress.system.drawing.PointF | The start circle center. |
| startingCircleRadius | double | The start circle radius. |
| endingCircleCenter | com.devexpress.system.drawing.PointF | The end circle center. |
| endingCircleRadius | double | The end circle radius. |
| functions | java.util.List<CustomFunction> | The custom functions. |
| domain | Range | The domain range. |
Returns
| Type | Description |
|---|---|
| RadialShadingFill | A radial shading fill. |
createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions) Method
Creates a radial shading fill with the specified color space, circle geometry, and functions.
Declaration
public static RadialShadingFill createRadialShading(ColorSpace colorSpace, PointF startingCircleCenter, double startingCircleRadius, PointF endingCircleCenter, double endingCircleRadius, List<CustomFunction> functions)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| startingCircleCenter | com.devexpress.system.drawing.PointF | The start circle center. |
| startingCircleRadius | double | The start circle radius. |
| endingCircleCenter | com.devexpress.system.drawing.PointF | The end circle center. |
| endingCircleRadius | double | The end circle radius. |
| functions | java.util.List<CustomFunction> | The custom functions. |
Returns
| Type | Description |
|---|---|
| RadialShadingFill | A radial shading fill. |
createSolid(ColorSpace colorSpace, PdfColor pdfColor, @Nullable Double opacity) Method
Creates a solid fill with the specified color space, PDF color, and opacity.
Declaration
public static SolidFill createSolid(ColorSpace colorSpace, PdfColor pdfColor, @Nullable Double opacity)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| pdfColor | PdfColor | The PDF color. |
| opacity | The fill opacity. |
Returns
| Type | Description |
|---|---|
| SolidFill | A solid fill. |
createSolid(ColorSpace colorSpace, PdfColor pdfColor) Method
Creates a solid fill with the specified color space and PDF color.
Declaration
public static SolidFill createSolid(ColorSpace colorSpace, PdfColor pdfColor)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| pdfColor | PdfColor | The PDF color. |
Returns
| Type | Description |
|---|---|
| SolidFill | A solid fill. |
createSolid(PdfColor pdfColor, @Nullable Double opacity) Method
Creates a solid fill with the specified PDF color and opacity.
Declaration
public static SolidFill createSolid(PdfColor pdfColor, @Nullable Double opacity)
Parameters
| Name | Type | Description |
|---|---|---|
| pdfColor | PdfColor | The PDF color. |
| opacity | The fill opacity. |
Returns
| Type | Description |
|---|---|
| SolidFill | A solid fill. |
createSolid(PdfColor pdfColor) Method
Creates a solid fill with the specified PDF color.
Declaration
public static SolidFill createSolid(PdfColor pdfColor)
Parameters
| Name | Type | Description |
|---|---|---|
| pdfColor | PdfColor | The PDF color. |
Returns
| Type | Description |
|---|---|
| SolidFill | A solid fill. |
createTensorProductPatchMeshShading(ColorSpace colorSpace, Iterable<TensorProductShadingPatch> patches, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity) Method
Creates a tensor-product patch mesh shading fill with the specified color space, patches, bounding box, anti-alias setting, background color, transformation matrix, and opacity.
Declaration
public static TensorProductPatchMeshShadingFill createTensorProductPatchMeshShading(ColorSpace colorSpace, Iterable<TensorProductShadingPatch> patches, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix, Double opacity)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| patches | java.lang.Iterable<TensorProductShadingPatch> | The tensor-product shading patches. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The matrix. |
| opacity | The fill opacity. |
Returns
| Type | Description |
|---|---|
| TensorProductPatchMeshShadingFill | A tensor-product patch mesh shading fill. |
createTensorProductPatchMeshShading(ColorSpace colorSpace, Iterable<TensorProductShadingPatch> patches, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix) Method
Creates a tensor-product patch mesh shading fill with the specified color space, patches, bounding box, anti-alias setting, background color, and transformation matrix.
Declaration
public static TensorProductPatchMeshShadingFill createTensorProductPatchMeshShading(ColorSpace colorSpace, Iterable<TensorProductShadingPatch> patches, RectangleF boundingBox, boolean antiAlias, PdfColor background, DXMatrix matrix)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| patches | java.lang.Iterable<TensorProductShadingPatch> | The tensor-product shading patches. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
| matrix | DXMatrix | The matrix. |
Returns
| Type | Description |
|---|---|
| TensorProductPatchMeshShadingFill | A tensor-product patch mesh shading fill. |
createTensorProductPatchMeshShading(ColorSpace colorSpace, Iterable<TensorProductShadingPatch> patches, RectangleF boundingBox, boolean antiAlias, PdfColor background) Method
Creates a tensor-product patch mesh shading fill with the specified color space, patches, bounding box, anti-alias setting, and background color.
Declaration
public static TensorProductPatchMeshShadingFill createTensorProductPatchMeshShading(ColorSpace colorSpace, Iterable<TensorProductShadingPatch> patches, RectangleF boundingBox, boolean antiAlias, PdfColor background)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| patches | java.lang.Iterable<TensorProductShadingPatch> | The tensor-product shading patches. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
| background | PdfColor | The background color. |
Returns
| Type | Description |
|---|---|
| TensorProductPatchMeshShadingFill | A tensor-product patch mesh shading fill. |
createTensorProductPatchMeshShading(ColorSpace colorSpace, Iterable<TensorProductShadingPatch> patches, RectangleF boundingBox, boolean antiAlias) Method
Creates a tensor-product patch mesh shading fill with the specified color space, patches, bounding box, and anti-alias setting.
Declaration
public static TensorProductPatchMeshShadingFill createTensorProductPatchMeshShading(ColorSpace colorSpace, Iterable<TensorProductShadingPatch> patches, RectangleF boundingBox, boolean antiAlias)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| patches | java.lang.Iterable<TensorProductShadingPatch> | The tensor-product shading patches. |
| boundingBox | RectangleF | The bounds. |
| antiAlias | boolean | The anti-alias setting. |
Returns
| Type | Description |
|---|---|
| TensorProductPatchMeshShadingFill | A tensor-product patch mesh shading fill. |
createTensorProductPatchMeshShading(ColorSpace colorSpace, Iterable<TensorProductShadingPatch> patches, RectangleF boundingBox) Method
Creates a tensor-product patch mesh shading fill with the specified color space, patches, and bounding box.
Declaration
public static TensorProductPatchMeshShadingFill createTensorProductPatchMeshShading(ColorSpace colorSpace, Iterable<TensorProductShadingPatch> patches, RectangleF boundingBox)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| patches | java.lang.Iterable<TensorProductShadingPatch> | The tensor-product shading patches. |
| boundingBox | RectangleF | The bounds. |
Returns
| Type | Description |
|---|---|
| TensorProductPatchMeshShadingFill | A tensor-product patch mesh shading fill. |
createTensorProductPatchMeshShading(ColorSpace colorSpace, Iterable<TensorProductShadingPatch> patches) Method
Creates a tensor-product patch mesh shading fill with the specified color space and patches.
Declaration
public static TensorProductPatchMeshShadingFill createTensorProductPatchMeshShading(ColorSpace colorSpace, Iterable<TensorProductShadingPatch> patches)
Parameters
| Name | Type | Description |
|---|---|---|
| colorSpace | ColorSpace | The color space. |
| patches | java.lang.Iterable<TensorProductShadingPatch> | The tensor-product shading patches. |
Returns
| Type | Description |
|---|---|
| TensorProductPatchMeshShadingFill | A tensor-product patch mesh shading fill. |
deepClone() Method
Creates a deep copy of the fill.
Declaration
public abstract Fill deepClone()
Returns
| Type | Description |
|---|---|
Fill |
A deep copy of the fill. |
getOpacity() Method
Returns the fill opacity.
Declaration
public @Nullable Double getOpacity()
Returns
| Type | Description |
|---|---|
The fill opacity. |
objectClone() Method
Creates an object copy of the fill.
Declaration
public Object objectClone()
Returns
| Type | Description |
|---|---|
| Object | A copy of the fill. |