GetRect
Returns a rectangular part of a pixmap as a new pixmap.
Syntax
-
GetRect(pm, x, y, w, h)
-
pm
is a pixmap -
x
,y
,w
, andh
are non-negative integers
-
Description
GetRect(pm, x, y, w, h)
returns the rectangular part of pm
that has top-left corner (x, y)
, width w
, and height h
.
Examples
GetRect(ExampleData("Sally"), 226, 80, 200, 200)