setChannelSafe method
set the gray value(0-255) at Point(x, y) without exception. channel
is ignored
Implementation
@override
void setChannelSafe(int x, int y, int value, [ImageChannel? channel]) {
if (x >= 0 && x < width && y >= 0 && y < height) {
setChannel(x, y, value, channel);
}
}