RosettaCodeData/Task/Bitmap/Mathematica/bitmap-2.math
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

3 lines
128 B
Text

img = Image[ConstantArray[{1, 0, 0}, {1000, 1000}]];
img = ReplacePixelValue[img, {1, 1} -> {0, 0, 1}];
ImageValue[img, {1, 1}]