Content-type: text/html
rows :: The number of bitmap rows. width :: The number of pixels in bitmap row. pitch :: The pitch's absolute value is the number of bytes taken by one bitmap row, including padding. However, the pitch is positive when the bitmap has a `down' flow, and negative when it has an `up' flow. In all cases, the pitch is an offset to add to a bitmap pointer in order to go down one row. buffer :: A typeless pointer to the bitmap buffer. This value should be aligned on 32-bit boundaries in most cases. num_grays :: This field is only used with `ft_pixel_mode_grays'; it gives the number of gray levels used in the bitmap. pixel_mode :: The pixel_mode, i.e., how pixel bits are stored. palette_mode :: This field is only used with paletted pixel modes; it indicates how the palette is stored. palette :: A typeless pointer to the bitmap palette; only used for paletted pixel modes.
A structure used to describe a bitmap or pixmap to the raster. Note that we now manage pixmaps of various depths through the `pixel_mode' field. A structure used to describe a bitmap or pixmap to the raster. Note that we now manage pixmaps of various depths through the `pixel_mode' field.
Notes: For now, the only pixel mode supported by FreeType are mono and grays. However, drivers might be added in the future to support more `colorful' options. When using pixel modes pal2, pal4 and pal8 with a void `palette' field, a gray pixmap with respectively 4, 16, and 256 levels of gray is assumed. This, in order to be compatible with some embedded bitmap formats defined in the TrueType specification. Note that no font was found presenting such embedded bitmaps, so this is currently completely unhandled by the library. typedef struct FT_Bitmap_ { int rows; int width; int pitch; unsigned char* buffer; short num_grays; char pixel_mode; char palette_mode; void* palette; } FT_Bitmap;
This documentation was generated for Freetype 2.0.4 by autodocbook (http://www.stillhq.com). Autodocbook is (c) Michael Still 2001.
Copyright 1996-2000 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used, modified, and distributed under the terms of the FreeType project license, LICENSE.TXT. By continuing to use, modify, or distribute this file you indicate that you have read the license and understand and accept it fully.
Please report errors in this documentation, and Freetype itself to freetype@freetype.org