freetypy.Bitmap.convert¶
-
Bitmap.convert()¶ Convert a
Bitmapto 8 bits per pixel. Given aBitmapwith depth 1bpp, 2bpp, 4bpp, or 8bpp converts it to one with depth 8bpp, making the number of used bytes per line (a.k.a. the ‘pitch’) a multiple ofalignment.Parameters: alignment : int, optional
The pitch of the bitmap is a multiple of this parameter. Common values are 1, 2, or 4.
Returns: target : Bitmap
The bitmap, converted to 8bpp.