source: svn/newcon3bcm2_21bu/dst/dmw/src/grp/jungle_font/_utfBitmapIMGP.cxx

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 1.5 KB
Line 
1#ifndef _INCLUDED_BITMAP_IMGP
2#define _INCLUDED_BITMAP_IMGP
3
4#include "_utfBit2Byte.cxx"
5
6UT_STATIC_API UT_BOOL ut_PrepareRasterBitmapGlyphIMGP(UT_FC* fc, UT_IMAGE* image)
7{
8        UT_TRACE1("ut_PrepareRasterBitmapGlyphIMGP()");
9        UT_TRACE_TAB_INC();
10        image->type = _UT_IMAGE_TYPE_BITMAP;
11        if ((fc->task->glyph->count == 1) || (fc->task->glyph->cmap->glyphBBoxType == _UT_GLYPH_BBOX_FIXED))
12        {
13                UT_DATA* data = fc->task->glyph->data;
14                UT_TRACE1("if (FIXED_BBOX)");
15                image->bbox.ox = data->bbox.ox;
16                image->bbox.oy = data->bbox.oy;
17                image->bbox.sx = data->bbox.sx;
18                image->bbox.sy = data->bbox.sy;
19        }
20        else
21        {
22                UT_TRACE1("else");
23                ut_GetImageBbox(fc, image);
24        }
25        image->bSize = ut_BSIZE8(image->bbox.sx);
26        image->lSize = image->bSize * image->bbox.sy;
27        UT_TRACE2("image->bbox.ox = %d", image->bbox.ox);
28        UT_TRACE2("image->bbox.oy = %d", image->bbox.oy);
29        UT_TRACE2("image->bbox.sx = %d", image->bbox.sx);
30        UT_TRACE2("image->bbox.sy = %d", image->bbox.sy);
31        UT_TRACE2("image->bSize   = %d", image->bSize);
32        UT_TRACE2("image->lSize   = %d", image->lSize);
33        UT_TRACE_TAB_DEC();
34        return _UT_TRUE;
35}
36
37UT_STATIC_API UT_BOOL ut_MakeRasterBitmapGlyphIMGP(UT_FC* fc, UT_IMAGE* image)
38{
39        int i = fc->task->glyph->count;
40        UT_DATA* data = fc->task->glyph->data;
41        UT_TRACE1("ut_MakeRasterBitmapGlyphIMGP()");
42        UT_TRACE_TAB_INC();
43        ut_AllocScanBuffer(fc->task, image, 0);
44        UT_MEMSET(image->data, 0, image->lSize);
45        for (; i; i--,data++) ut_CopySBMP(image, data);
46        UT_TRACE_TAB_DEC();
47        return _UT_TRUE;
48}
49
50#endif /*#ifndef _INCLUDED_BITMAP_IMGP*/
Note: See TracBrowser for help on using the repository browser.