Skip to content

IGR_Canvas_RoundRect

Draws a rectangle with rounded corners, outlined with the current pen and filled with the current brush, on the canvas.

Prototype

IGR_LONG IGR_Canvas_RoundRect(
    HCANVAS canvas,
    IGR_LONG x,
    IGR_LONG y,
    IGR_LONG x2,
    IGR_LONG y2,
    IGR_LONG radius,
    Error_Control_Block* error);

Parameters

Canvas: HCANVAS

Handle to a canvas.

X: IGR_LONG

Left-most coordinate of the bounding box.

Y: IGR_LONG

Top-most coordinate of the bounding box.

X2: IGR_LONG

Right-most coordinate of the bounding box.

Y2: IGR_LONG

Bottom-most coordinate of the bounding box.

Radius: IGR_LONG

The radius to use for the rounded corner.

Error: Pointer to Error_Control_Block

Returns error details if the call fails.

Return value

Success: IGR_LONG

Returns IGR_OK.

Failure: IGR_LONG

Returns one of the possible IGR_E error codes.

Additional information

Note The drawing API is available for bitmap and PDF outputs only. Drawing onto an HTML5 output is not supported.

See also