Interface DrawMarkerOptions

interface DrawMarkerOptions {
    color?: number[];
    filled?: boolean;
    out?: Image;
    shape?: "square" | "triangle" | "circle" | "cross";
    size?: number;
}

Properties

color?: number[]

Circle border color array of N elements (e.g. R, G, B or G, A), N being the number of channels.

Default

A black pixel.
filled?: boolean

Set marker as filled.

Default

false

out?: Image

Image to which the resulting image has to be put.

shape?: "square" | "triangle" | "circle" | "cross"

Marker shape.

Default

'cross'

size?: number

Marker size, Odd number greater than 1.

Default

1