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
MaxTotalfloatThe largest total of the printing inks on one pixel, as a fraction (3.2 is 320%).
MaxAtPoint?Where that total is (the first such pixel), or null for a raster with no ink.
LimitfloatThe total ink limit measured against, as a fraction.
ShareOverdoubleThe share of pixels whose total exceeds
Limit, 0 to 1.PerPlateIReadOnlyDictionary<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
MaxAt
Where that total is (the first such pixel), or null for a raster with no ink.
public Point? MaxAt { get; init; }
Property Value
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
PerPlate
Each plate's mean coverage, 0 to 1, by ink name; technical inks included.
public IReadOnlyDictionary<string, double> PerPlate { get; init; }
Property Value
ShareOver
The share of pixels whose total exceeds Limit, 0 to 1.
public double ShareOver { get; init; }