Sign In

$cropCanvas

Crops a canvas

v1.0.0+ Optional Brackets

Usage

$cropCanvas[;;;;]
Also callable as
$canvasCrop $canvasTrim $trimCanvas

Arguments

NameTypeRequiredDescription
canvas
StringNoName of the canvas
top
BooleanNoWhether to trim the top (true by default)
left
BooleanNoWhether to trim the left (true by default)
right
BooleanNoWhether to trim the right (true by default)
bottom
BooleanNoWhether to trim the bottom (true by default)

Was this page helpful?