raster

package
v0.0.0-...-a53a016 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2015 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Copyright 2011 The draw2d Authors. All rights reserved. created: 27/05/2011 by Laurent Le Goff

Index

Constants

View Source
const (
	SUBPIXEL_SHIFT = 3
	SUBPIXEL_COUNT = 1 << SUBPIXEL_SHIFT
)

Variables

View Source
var SUBPIXEL_OFFSETS = SUBPIXEL_OFFSETS_SAMPLE_8

Functions

This section is empty.

Types

type NON_ZERO_MASK_DATA_UNIT

type NON_ZERO_MASK_DATA_UNIT uint8

type Rasterizer8BitsSample

type Rasterizer8BitsSample struct {
	MaskBuffer    []SUBPIXEL_DATA
	WindingBuffer []NON_ZERO_MASK_DATA_UNIT

	Width           int
	BufferWidth     int
	Height          int
	ClipBound       [4]float64
	RemappingMatrix [6]float64
}

func NewRasterizer8BitsSample

func NewRasterizer8BitsSample(width, height int) *Rasterizer8BitsSample
width and height define the maximum output size for the filler.

* The filler will output to larger bitmaps as well, but the output will * be cropped.

func (*Rasterizer8BitsSample) RenderEvenOdd

func (r *Rasterizer8BitsSample) RenderEvenOdd(img *image.RGBA, color *color.RGBA, polygon *Polygon, tr [6]float64)

func (*Rasterizer8BitsSample) RenderNonZeroWinding

func (r *Rasterizer8BitsSample) RenderNonZeroWinding(img *image.RGBA, color *color.RGBA, polygon *Polygon, tr [6]float64)

* Renders the polygon with non-zero winding fill. * param aTarget the target bitmap. * param aPolygon the polygon to render. * param aColor the color to be used for rendering. * param aTransformation the transformation matrix.

type SUBPIXEL_DATA

type SUBPIXEL_DATA uint16

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL