This can be useful if you’re going to paste or draw things in the image. If the color is None, the image is not initialized. If the color argument is omitted, the image is filled with zero (this usually corresponds to black). The color is given as a single value for single-band images, and a tuple for multi-band images (with one value for each band). Size is given as a (width, height)-tuple, in pixels. () method creates a new image with the given mode and size. Here, we will create Images with colors using Image.new() method. For example- #ffff00 represents yellow where hue is 0.63, saturation is 1.00, and also the lightness value is 0.50.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |