Sign In

$drawImageArea[]

Draws a specific area of an image on the canvas

v1.3.0+ Requires Brackets

Usage

$drawImageArea[;;;;;;;;;;]
Also callable as
$placeImageArea $drawImageRect $drawImageRect

Arguments

NameTypeRequiredDescription
canvas
StringNoName of the canvas
src
StringYesThe image source
srcX
NumberYesThe image area's start X coordinate
srcY
NumberYesThe image area's start X coordinate
srcWidth
NumberNoThe image area width
srcHeight
NumberNoThe image area height
x
NumberYesThe image destination start X coordinate
y
NumberYesThe image destionation start Y coordinate
width
NumberNoThe drawn image width
height
NumberNoThe drawn image height
...radius
NumberNoThe drawn image radius

Was this page helpful?