Table of Contents

Class InkCoverage

Namespace
Egami
Assembly
Egami.dll

How much ink an InkRaster prints, from MeasureCoverage(float).

public sealed record InkCoverage : IEquatable<InkCoverage>
Inheritance
InkCoverage
Implements
Inherited Members

Examples

// How the plates look on screen, and whether they print within the press's total ink limit.
using Raster<Rgba8> proof = page.Proof<Rgba8>(new ProofOptions { SimulatePaper = true });
InkCoverage coverage = page.MeasureCoverage(limit: 3.0f);
bool tooMuchInk = coverage.MaxTotal > coverage.Limit;      // where: coverage.MaxAt; how often: coverage.ShareOver

Constructors

InkCoverage(float, Point?, float, double, IReadOnlyDictionary<string, double>)

How much ink an InkRaster prints, from MeasureCoverage(float).

public InkCoverage(float MaxTotal, Point? MaxAt, float Limit, double ShareOver, IReadOnlyDictionary<string, double> PerPlate)

Parameters

MaxTotal float

The largest total of the printing inks on one pixel, as a fraction (3.2 is 320%).

MaxAt Point?

Where that total is (the first such pixel), or null for a raster with no ink.

Limit float

The total ink limit measured against, as a fraction.

ShareOver double

The share of pixels whose total exceeds Limit, 0 to 1.

PerPlate IReadOnlyDictionary<string, double>

Each plate's mean coverage, 0 to 1, by ink name; technical inks included.

Examples

// How the plates look on screen, and whether they print within the press's total ink limit.
using Raster<Rgba8> proof = page.Proof<Rgba8>(new ProofOptions { SimulatePaper = true });
InkCoverage coverage = page.MeasureCoverage(limit: 3.0f);
bool tooMuchInk = coverage.MaxTotal > coverage.Limit;      // where: coverage.MaxAt; how often: coverage.ShareOver

Properties

Limit

The total ink limit measured against, as a fraction.

public float Limit { get; init; }

Property Value

float

MaxAt

Where that total is (the first such pixel), or null for a raster with no ink.

public Point? MaxAt { get; init; }

Property Value

Point?

MaxTotal

The largest total of the printing inks on one pixel, as a fraction (3.2 is 320%).

public float MaxTotal { get; init; }

Property Value

float

PerPlate

Each plate's mean coverage, 0 to 1, by ink name; technical inks included.

public IReadOnlyDictionary<string, double> PerPlate { get; init; }

Property Value

IReadOnlyDictionary<string, double>

ShareOver

The share of pixels whose total exceeds Limit, 0 to 1.

public double ShareOver { get; init; }

Property Value

double