Interface DrawLineOnImageOptions

interface DrawLineOnImageOptions {
    origin?: Point;
    out?: Image;
    strokeColor?: number[];
}

Properties

origin?: Point

Origin of the line relative to a parent image (top-left corner).

Default

{row: 0, column: 0}

out?: Image

Image to which the resulting image has to be put.

strokeColor?: number[]

Color of the line. Should be an array of N elements (e.g. R, G, B or G, A), N being the number of channels.

Default

A black pixel.