pub struct RasterizerScanline {
    pub clipper: Clip,
    pub outline: RasterizerCell,
    pub status: PathStatus,
    pub x0: i64,
    pub y0: i64,
    /* private fields */
}
Expand description

Rasterizer Anti-Alias using Scanline

Fields

clipper: Clip

Clipping Region

outline: RasterizerCell

Collection of Rasterizing Cells

status: PathStatus

Status of Path

x0: i64

Current x position

y0: i64

Current y position

Implementations

Reset Rasterizer

Reset the RasterizerCell and set PathStatus to Initial

Add a Path

Walks the path from the VertexSource and rasterizes it

Rewind the Scanline

Close active polygon, sort the Rasterizer Cells, set the scan_y value to the minimum y value and return if any cells are present

Return minimum x value from the RasterizerCell

Return maximum x value from the RasterizerCell

Create a new RasterizerScanline

Set the gamma function

Values are set as:

      gamma = gfunc( v / mask ) * mask

where v = 0 to 255

Create a new RasterizerScanline with a gamma function

See gamma() function for description

Set Clip Box

Move to point (x,y)

Sets point as the initial point

Draw line from previous point to point (x,y)

Close the current polygon

Draw a line from current point to initial “move to” point

Calculate alpha term based on area

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.