ShadingPattern Class Documentation

class ShadingPattern : Pattern

Namespace:datalogics_interface

Inherits from:
Pattern
Derived classes:
AxialShadingPattern

Detailed Description

A shading pattern consists of a smoothly varying gradient between two colors.

Member Function Documentation

get_anti_alias

bool get_anti_alias()

Returns:

bool

true if anti-aliasing is enabled, false otherwise.

Gets whether anti-aliasing is enabled for the shading.

When enabled, the shading function is filtered to prevent aliasing artifacts.

get_bounding_box

Rect get_bounding_box()

Returns:

Rect

The bounding box Rect, or NULL if none is set.

Gets the bounding box of the shading.

The coordinates are interpreted in the target coordinate space. If present, provides an additional, temporary clipping boundary to the shading.

set_anti_alias

void set_anti_alias(bool anti_alias)

Parameters

anti_alias: bool

true to enable anti-aliasing, false to disable it.

Returns:

void

Sets whether anti-aliasing is enabled for the shading.

When enabled, the shading function is filtered to prevent aliasing artifacts.

set_bounding_box

void set_bounding_box(const Rect & bbox)

Parameters

bbox: const Rect &

The bounding box Rect to set, or NULL to remove it.

Returns:

void

Sets the bounding box of the shading.

The coordinates are interpreted in the target coordinate space. If present, provides an additional, temporary clipping boundary to the shading. Set to NULL to remove the bounding box.

set_color_space

void set_color_space(ColorSpace & color_space)

Parameters

color_space: ColorSpace &

The ColorSpace to set for the shading pattern.

Returns:

void

Sets the color space of a shading pattern.

This space is restricted to be any space except a Pattern space.

to_string

std::string to_string()

Returns:

std::string

A string describing the shading pattern.

Converts the shading pattern to a string representation.