Lines Matching refs:bitmap
97 /* convert a slot's glyph image into a bitmap */
108 FT_Bitmap* bitmap;
186 bitmap = &slot->bitmap;
189 /* release old bitmap buffer */
192 FT_FREE( bitmap->buffer );
201 bitmap->pixel_mode = FT_PIXEL_MODE_GRAY;
202 bitmap->num_grays = 256;
207 bitmap->pixel_mode = FT_PIXEL_MODE_MONO;
210 bitmap->width = width;
211 bitmap->rows = height;
212 bitmap->pitch = pitch;
214 if ( FT_ALLOC_MULT( bitmap->buffer, pitch, height ) )
219 /* translate outline to render it into the bitmap */
223 params.target = bitmap;
227 if ( bitmap->pixel_mode == FT_PIXEL_MODE_GRAY )
230 /* render outline into the bitmap */