In this example, the fill() method are used. the fill() method fills a array or a specific channel or channels with a constant value. the fill() method is an inplace operation. ImageArray and Img have the same useage.
bellow there is a red and blue image, generate by ImageArray and Img seperately.
下面会显示一个256x512的红色图像。代码可从控制台查看!
请参考代码生成一幅128x256的黄色的图像,并显示在下方。(黄色是由红色和绿色合成的。)