Promotic
WikipediaLinkedInYoutubeTwitterFacebook

strokeRect - method of object CanvasCtx

Description:
Draws a hollow rectangle (no fill).
Syntax:
strokeRect(x As Long, y As Long, width As Long, height As Long) As Object
Calling:
ctx.strokeRect(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) The rectangle lenght (in pixels).
height(Long) The rectangle height (in pixels).
Note:
The method can also be called in the graphic item events for Web Panels.
See also:
Example:
ctx.strokeRect(50, 50, 150, 80);
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice