ImageJS
    Preparing search index...

    Interface DrawRectangleOptions<OutType>

    interface DrawRectangleOptions<OutType> {
        fillColor?: number[];
        height?: number;
        origin?: Point;
        out?: OutType;
        strokeColor?: number[];
        width?: number;
    }

    Type Parameters

    • OutType
    Index

    Properties

    fillColor?: number[]

    Rectangle fill color - An array of numerical values, one for each channel of the image. If less values are defined than there are channels in the image, the remaining channels will be set to 0.

    height?: number

    Specify the width of the rectangle.

    image.height

    origin?: Point

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

    {row: 0, column: 0}

    out?: OutType

    Image to which the resulting image has to be put.

    strokeColor?: number[]

    Color of the rectangle's border - An array of numerical values, one for each channel of the image. If less values are defined than there are channels in the image, the remaining channels will be set to 0.

    A black pixel.
    
    width?: number

    Specify the width of the rectangle.

    image.width