Hierarchy

  • RasterOptions

Properties

color?: Color

Optionally specify the color of the raster's bitmap context, by default Color.Black

filtering?: ImageFiltering

Optionally specify what image filtering mode should be used, ImageFiltering.Pixel for pixel art, ImageFiltering.Blended for hi-res art

By default unset, rasters defer to the engine antialiasing setting

lineCap?: "square" | "butt" | "round"

Optionally specify the line end style, default is "butt".

lineDash?: number[]

Optionally specify the line dash of the raster's bitmap, by default [] which means none

lineWidth?: number

Optionally specify the line width of the raster's bitmap, by default 1 pixel

padding?: number

Optionally specify the padding to apply to the bitmap

quality?: number

Optionally specify a quality number, which is how much to scale the internal Raster. Default is 1.

For example if the quality is set to 2, it doubles the internal raster bitmap in memory.

Adjusting this value can be useful if you are working with small rasters.

smoothing?: boolean

Optionally specify "smoothing" if you want antialiasing to apply to the raster's bitmap context, by default false

strokeColor?: Color

Optionally specify the stroke color of the raster's bitmap context, by default undefined