Promotic
WikipediaLinkedInYoutubeTwitterFacebook

fillRect - method of object CanvasCtx

Description:
Draws a "filled" rectangle.
Syntax:
fillRect(x As Long, y As Long, width As Long, height As Long) As Object
Calling:
ctx.fillRect(x, y, width, height);
Parameters:
x(Long) The x-coordinate of the upper-left corner of the rectangle
y(Long) The y-coordinate of the upper-left corner of the rectangle
width(Long) Width of the rectangle (in pixels).
height(Long) Height of the rectangle (in pixels).
Note:
The method can also be called in the graphic item events for Web Panels.
See also:
Example:
// Blue rectangle
ctx.fillStyle = "blue";
ctx.fillRect(50, 50, 150, 80);
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice