Example #1
0
  void updateCTM(GfxState *state,
		 double m11, double m12,
		 double m21, double m22,
		 double m31, double m32)
  {
    double *ctm = getDefCTM();

    updateLineDash(state);
    updateLineJoin(state);
    updateLineCap(state);
    updateLineWidth(state);
  }
Example #2
0
 //! Change back to the old state
 void restoreState(GfxState *state)
 {
   g_print ("restoreState\n");
   // should contain all of our update*() methods?
   updateLineWidth(state);
   updateLineDash(state);
   updateLineJoin(state);
   updateLineCap(state);
   updateStrokeColor(state);
   updateStrokeOpacity(state);
   updateFillColor(state);
   updateFillOpacity(state);
   updateFont(state);
 }
Example #3
0
 //! Change back to the old state
 void restoreState(GfxState *state)
 {
   // just restore the matrix for now
   this->matrices.pop_back();
   this->matrix = this->matrices.back();
   // should contain all of our update*() methods?
   updateLineWidth(state);
   updateLineDash(state);
   updateLineJoin(state);
   updateLineCap(state);
   updateStrokeColor(state);
   updateStrokeOpacity(state);
   updateFillColor(state);
   updateFillOpacity(state);
   updateFont(state);
 }
Example #4
0
  void updateCTM(GfxState *state,
		 double m11, double m12,
		 double m21, double m22,
		 double m31, double m32)
  {
    DiaMatrix mat;

    mat.xx = m11;
    mat.yx = m12;
    mat.xy = m21;
    mat.yy = m22;
    mat.x0 = m31 * scale;
    mat.y0 = m32 * scale;

    //this->matrix = mat;
    dia_matrix_multiply (&this->matrix, &mat, &this->matrix);

    updateLineDash(state);
    updateLineJoin(state);
    updateLineCap(state);
    updateLineWidth(state);
  }