Lines Matching refs:bitmap
625 static char * gdft_draw_bitmap (gdCache_head_t *tc_cache, gdImage * im, int fg, FT_Bitmap bitmap, i… argument
640 for (row = 0; row < bitmap.rows; row++) {
641 pc = row * bitmap.pitch;
649 for (col = 0; col < bitmap.width; col++, pc++) {
651 if (bitmap.pixel_mode == ft_pixel_mode_grays) {
655 level = (bitmap.buffer[pc] * gdAlphaMax / (bitmap.num_grays - 1));
656 } else if (bitmap.pixel_mode == ft_pixel_mode_mono) {
658 … level = ((bitmap.buffer[(col>>3)+pcr]) & (1<<(~col&0x07))) ? gdAlphaTransparent : gdAlphaOpaque;
703 for (row = 0; row < bitmap.rows; row++) {
705 pc = row * bitmap.pitch;
707 if (bitmap.pixel_mode==ft_pixel_mode_mono) {
717 for (col = 0; col < bitmap.width; col++, pc++) {
718 if (bitmap.pixel_mode == ft_pixel_mode_grays) {
724 … tc_key.pixel = ((bitmap.buffer[pc] * NUMCOLORS) + bitmap.num_grays / 2) / (bitmap.num_grays - 1);
725 } else if (bitmap.pixel_mode == ft_pixel_mode_mono) {
726 tc_key.pixel = ((bitmap.buffer[pc / 8] << (pc % 8)) & 128) ? NUMCOLORS : 0;
728 tc_key.pixel = ((bitmap.buffer[(col>>3)+pcr]) & (1<<(~col&0x07))) ? NUMCOLORS : 0;
1177 …gdft_draw_bitmap(tc_cache, im, fg, bm->bitmap, x + x1 + ((pen.x + 31) >> 6) + bm->left, y + y1 + (…