Struct pdf_writer::writers::ColorSpace[][src]

pub struct ColorSpace<'a> { /* fields omitted */ }
Expand description

Writer for a color space.

This struct is created by PdfWriter::color_space, Shading::color_space, ImageXObject::color_space and Group::color_space.

Implementations

CIE-based color spaces.

Write a CalRGB color space.

Write a CalRGB color space for sRGB.

Write a CalRGB color space for Adobe RGB.

Write a CalRGB color space for Display P3.

Write a CalGray color space.

Write a CalGray color space for CIE D65 at a 2.2 gamma, equivalent to sRGB.

Write a CalGray color space for Adobe RGB.

Write a CalGray color space for Display P3.

Write a Lab color space.

Device color spaces.

Write a DeviceRGB color space.

Write a DeviceCMYK color space.

Write a DeviceGray color space.

Special color spaces.

Write a Separation color space. PDF 1.2+.

Write a DeviceN color space. PDF 1.3+.

Write an Indexed color space. PDF 1.2+.

The length of the lookup slice must be the product of the dimensions of the base color space and (hival + 1) and hival shall be at most 255.

Write a Pattern color space for uncolored patterns. PDF 1.2+.

The base attribute is the color space in which the pattern color is specified upon use.

Trait Implementations

Start writing the object.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.