Skip to main content

RasterOptions

Hierarchy

Index

Properties

optionalcolor

color?: Color

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

optionalfiltering

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

optionalinheritedflipHorizontal

flipHorizontal?: boolean

Should the graphic be flipped horizontally

optionalinheritedflipVertical

flipVertical?: boolean

Should the graphic be flipped vertically

optionalinheritedheight

height?: number

The height of the graphic

optionallineCap

lineCap?: butt | round | square

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

optionallineDash

lineDash?: number[]

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

optionallineWidth

lineWidth?: number

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

optionalinheritedopacity

opacity?: number

The opacity of the graphic between (0 -1)

optionalinheritedorigin

origin?: Vector

The origin of the drawing in pixels to use when applying transforms, by default it will be the center of the image in pixels

optionalpadding

padding?: number

Optionally specify the padding to apply to the bitmap

optionalquality

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.

optionalinheritedrotation

rotation?: number

The rotation of the graphic

optionalinheritedscale

scale?: Vector

The scale of the graphic

optionalsmoothing

smoothing?: boolean

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

optionalstrokeColor

strokeColor?: Color

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

optionalinheritedtint

tint?: Color

The tint of the graphic, this color will be multiplied by the original pixel colors

optionalinheritedwidth

width?: number

The width of the graphic