ImageJS
    Preparing search index...

    Interface DrawRectangleOptions<OutType>

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

    Type Parameters

    • OutType
    Index

    Properties

    fillColor?: number[] | "none"

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

    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[] | "none"

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

    A black pixel.
    
    width?: number

    Specify the width of the rectangle.

    image.width