25void OutputDev::setDefaultCTM( const double *ctm) {
29 for (i = 0; i < 6; ++i) {
32 det = 1 / (defCTM[0] * defCTM[3] - defCTM[1] * defCTM[2]);
33 defICTM[0] = defCTM[3] * det;
34 defICTM[1] = -defCTM[1] * det;
35 defICTM[2] = -defCTM[2] * det;
36 defICTM[3] = defCTM[0] * det;
37 defICTM[4] = (defCTM[2] * defCTM[5] - defCTM[3] * defCTM[4]) * det;
38 defICTM[5] = (defCTM[1] * defCTM[4] - defCTM[0] * defCTM[5]) * det;
41void OutputDev::cvtDevToUser( int dx, int dy, double *ux, double *uy) {
42 *ux = defICTM[0] * dx + defICTM[2] * dy + defICTM[4];
43 *uy = defICTM[1] * dx + defICTM[3] * dy + defICTM[5];
46void OutputDev::cvtUserToDev( double ux, double uy, int *dx, int *dy) {
47 *dx = (int)(defCTM[0] * ux + defCTM[2] * uy + defCTM[4] + 0.5);
48 *dy = (int)(defCTM[1] * ux + defCTM[3] * uy + defCTM[5] + 0.5);
51void OutputDev::updateAll(GfxState *state) {
52 updateLineDash(state);
53 updateFlatness(state);
54 updateLineJoin(state);
56 updateMiterLimit(state);
57 updateLineWidth(state);
58 updateFillColor(state);
59 updateStrokeColor(state);
63GBool OutputDev::beginType3Char(GfxState *,
64 CharCode , Unicode *, int ) {
68void OutputDev::drawImageMask(GfxState *, Object *,
69 Stream *str, int width, int height, GBool ,
75 j = height * ((width + 7) / 8);
76 for (i = 0; i < j; ++i)
82void OutputDev::drawImage(GfxState *, Object *, Stream *str,
83 int width, int height, GfxImageColorMap *colorMap,
84 int *, GBool inlineImg) {
89 j = height * ((width * colorMap->getNumPixelComps() *
90 colorMap->getBits() + 7) / 8);
91 for (i = 0; i < j; ++i)
98void OutputDev::opiBegin(GfxState *, Dict *) {
101void OutputDev::opiEnd(GfxState *, Dict *) {
|