Lines Matching refs:bitmap
625 static char * gdft_draw_bitmap (gdCache_head_t *tc_cache, gdImage * im, int fg, FT_Bitmap bitmap, i… argument
639 for (row = 0; row < bitmap.rows; row++) {
640 pc = row * bitmap.pitch;
648 for (col = 0; col < bitmap.width; col++, pc++) {
650 if (bitmap.pixel_mode == ft_pixel_mode_grays) {
654 level = (bitmap.buffer[pc] * gdAlphaMax / (bitmap.num_grays - 1));
655 } else if (bitmap.pixel_mode == ft_pixel_mode_mono) {
657 … level = ((bitmap.buffer[(col>>3)+pcr]) & (1<<(~col&0x07))) ? gdAlphaTransparent : gdAlphaOpaque;
696 for (row = 0; row < bitmap.rows; row++) {
698 pc = row * bitmap.pitch;
700 if (bitmap.pixel_mode==ft_pixel_mode_mono) {
710 for (col = 0; col < bitmap.width; col++, pc++) {
711 if (bitmap.pixel_mode == ft_pixel_mode_grays) {
717 … tc_key.pixel = ((bitmap.buffer[pc] * NUMCOLORS) + bitmap.num_grays / 2) / (bitmap.num_grays - 1);
718 } else if (bitmap.pixel_mode == ft_pixel_mode_mono) {
719 tc_key.pixel = ((bitmap.buffer[pc / 8] << (pc % 8)) & 128) ? NUMCOLORS : 0;
721 tc_key.pixel = ((bitmap.buffer[(col>>3)+pcr]) & (1<<(~col&0x07))) ? NUMCOLORS : 0;
1170 …gdft_draw_bitmap(tc_cache, im, fg, bm->bitmap, x + x1 + ((pen.x + 31) >> 6) + bm->left, y + y1 + (…