Image
A brief reference to the Image class.
Last updated
Was this helpful?
A brief reference to the Image class.
Last updated
Was this helpful?
If you have pyDraw installed as the library file in your project directory, you must ensure '' is installed, or you won't be able to resize the image, modify any image attributes, or use image types other than PNG, GIF, and PPM.
You can create an image with a similar constructor:
(Supported image types: PNG, GIF, JPG, and PPM)
It is still possible to call the color()
method and colorize the image:
You can flip the image across the X or Y axes ():
It is possible to access the individual frames of an animated GIF file by first calling this after initialization:
Then you can access individual frames via:
Or you can just push the frame forward by one with:
The total number of frames is available too: