ftbitmap.c File Reference

#include <ft2build.h>

Go to the source code of this file.

Functions

 FT_Bitmap_New (FT_Bitmap *abitmap)
 FT_Bitmap_Copy (FT_Library library, const FT_Bitmap *source, FT_Bitmap *target)
static FT_Error ft_bitmap_assure_buffer (FT_Memory memory, FT_Bitmap *bitmap, FT_UInt xpixels, FT_UInt ypixels)
 FT_Bitmap_Embolden (FT_Library library, FT_Bitmap *bitmap, FT_Pos xStrength, FT_Pos yStrength)
 FT_Bitmap_Convert (FT_Library library, const FT_Bitmap *source, FT_Bitmap *target, FT_Int alignment)
 FT_GlyphSlot_Own_Bitmap (FT_GlyphSlot slot)
 FT_Bitmap_Done (FT_Library library, FT_Bitmap *bitmap)

Variables

static const FT_Bitmap null_bitmap = { 0, 0, 0, 0, 0, 0, 0, 0 }


Function Documentation

static FT_Error ft_bitmap_assure_buffer ( FT_Memory  memory,
FT_Bitmap bitmap,
FT_UInt  xpixels,
FT_UInt  ypixels 
) [static]

Definition at line 98 of file ftbitmap.c.

References buffer, FT_Bitmap_::buffer, error, for(), FT_MEM_COPY, FT_MEM_ZERO, FT_PIXEL_MODE_GRAY, FT_PIXEL_MODE_GRAY2, FT_PIXEL_MODE_GRAY4, FT_PIXEL_MODE_LCD, FT_PIXEL_MODE_LCD_V, FT_PIXEL_MODE_MONO, FT_QALLOC_MULT, height, i, if(), len, line, mask, FT_Bitmap_::pitch, FT_Bitmap_::pixel_mode, FT_Bitmap_::rows, FT_Bitmap_::width, width, and write.

Referenced by FT_Bitmap_Embolden().

FT_Bitmap_Convert ( FT_Library  library,
const FT_Bitmap source,
FT_Bitmap target,
FT_Int  alignment 
)

Definition at line 375 of file ftbitmap.c.

References error, for(), FT_ARRAY_COPY, FT_PIXEL_MODE_GRAY, FT_PIXEL_MODE_GRAY2, FT_PIXEL_MODE_GRAY4, FT_PIXEL_MODE_LCD, FT_PIXEL_MODE_LCD_V, FT_PIXEL_MODE_MONO, FT_QREALLOC, i, j, s, t, val, width, x01, x03, x10, x20, and x80.

Referenced by FT_Bitmap_Embolden().

FT_Bitmap_Copy ( FT_Library  library,
const FT_Bitmap source,
FT_Bitmap target 
)

Definition at line 41 of file ftbitmap.c.

References error, FT_MEM_COPY, FT_QALLOC, FT_QREALLOC, NULL, p, size, and void.

Referenced by ft_bitmap_glyph_copy(), ft_bitmap_glyph_init(), and FT_GlyphSlot_Own_Bitmap().

FT_Bitmap_Done ( FT_Library  library,
FT_Bitmap bitmap 
)

Definition at line 642 of file ftbitmap.c.

References FT_FREE, and null_bitmap.

Referenced by FT_Bitmap_Embolden(), and ft_bitmap_glyph_done().

FT_Bitmap_Embolden ( FT_Library  library,
FT_Bitmap bitmap,
FT_Pos  xStrength,
FT_Pos  yStrength 
)

Definition at line 214 of file ftbitmap.c.

References align(), error, ft_bitmap_assure_buffer(), FT_Bitmap_Convert(), FT_Bitmap_Done(), FT_Bitmap_New(), FT_INT_MAX, FT_PIX_ROUND, FT_PIXEL_MODE_GRAY2, FT_PIXEL_MODE_GRAY4, FT_PIXEL_MODE_LCD, FT_PIXEL_MODE_LCD_V, FT_PIXEL_MODE_MONO, i, if(), p, x, and y.

Referenced by FT_GlyphSlot_Embolden().

FT_Bitmap_New ( FT_Bitmap abitmap  ) 

Definition at line 32 of file ftbitmap.c.

References null_bitmap.

Referenced by FT_Bitmap_Embolden(), ft_bitmap_glyph_init(), and FT_GlyphSlot_Own_Bitmap().

FT_GlyphSlot_Own_Bitmap ( FT_GlyphSlot  slot  ) 

Definition at line 617 of file ftbitmap.c.

References error, FT_Bitmap_Copy(), FT_Bitmap_New(), FT_GLYPH_FORMAT_BITMAP, and FT_GLYPH_OWN_BITMAP.

Referenced by FT_GlyphSlot_Embolden().


Variable Documentation

const FT_Bitmap null_bitmap = { 0, 0, 0, 0, 0, 0, 0, 0 } [static]

Definition at line 26 of file ftbitmap.c.

Referenced by FT_Bitmap_Done(), and FT_Bitmap_New().


Generated on Tue Jul 5 15:58:22 2011 for ROOT_528-00b_version by  doxygen 1.5.1