-
Book Overview & Buying
-
Table Of Contents
Python 2.6 Graphics Cookbook
By :
In this chapter, we will cover:
Picture formats in native Python
Opening an image and discovering its attributes
The Python image Library format conversions: .jpg, .png, .tiff, .gif, and, .bmp
Image rotation in the plane
Re-sizing images
Re-sizing with correct aspect ratio
Rotating images
Separating color bands
Red, green, and blue color re-mixing
Combining images by blending
Blending images by varying percentages
Making composites with image masks
Offset (roll) an image horizontally and vertically
Geometric transformations: horizontal and vertical flipping and rotation
Filters: sharpen, blur, edge enhance, emboss, smooth, contour, and detail
Apparent rotation by re-sizing
Now we will work with raster images. These are things like photographs, bitmap images, and digital paintings – all the image types that are NOT the vector graphic drawings we have been using until now. Raster images are made up of pixels, which is short for picture elements. Vector images are defined and...
Change the font size
Change margin width
Change background colour