Convert a bitmap object with depth 1bpp, 2bpp, 4bpp, or 8bpp to a bitmap object with depth 8bpp, making the number of used bytes per line (a.k.a. the ‘pitch’) a multiple of ‘alignment’.
|
input |
library |
A handle to a library object.
|
source |
The source bitmap.
|
alignment |
The pitch of the bitmap is a multiple of this parameter. Common values are 1, 2, or 4.
|
|
output |
target |
The target bitmap.
|
|
return |
FreeType error code. 0 means success.
|
note |
It is possible to call FT_Bitmap_Convert multiple times without calling FT_Bitmap_Done (the memory is simply reallocated).
Use FT_Bitmap_Done to finally remove the bitmap object.
The ‘library’ argument is taken to have access to FreeType's memory handling functions.
|
|