safeGet

Get the pixel color at the specified coordinates, or fall back to the specified default value if the coordinates are out of bounds.

COLOR
safeGet
(
V
COLOR
)
(
auto ref V v
,
int x
,
int y
,
COLOR def
)
if (
isView!V &&
is(COLOR : ViewColor!V)
)

Meta