private void drawPreview() { double sx, sy, ex, ey; sx = trnsX(0.0); sy = trnsY(0.0); ex = trnsX(210.0); ey = trnsY(297.0); m_libCanvas.setBrushFill(0xff, 0xff, 0xff); m_libCanvas.drawBoxs(canvasPreview, sx, sy, ex - sx, ey - sy); drawCanvas(canvasPreview); }
private void setBoxs(double sx, double sy, double ex, double ey) { double wd, hi; sx = sx * m_dTime + m_dBaseX; sy = sy * m_dTime + m_dBaseY; ex = ex * m_dTime + m_dBaseX; ey = ey * m_dTime + m_dBaseY; wd = ex - sx; hi = ey - sy; m_libCanvas.drawBoxs(m_Canvas, sx, sy, wd, hi); }
private void drawPreviewPage() { double sx, sy, ex, ey; if (m_nCrtPage == 1) { btnPrevPage.IsEnabled = false; } if (m_nCrtPage == m_nPageMax) { btnNextPage.IsEnabled = false; } sx = trnsX(0.0); sy = trnsY(0.0); ex = trnsX(210.0); ey = trnsY(297.0); m_libCanvas.setBrushFill(0xff, 0xff, 0xff); m_libCanvas.drawBoxs(canvasPage, sx, sy, ex - sx, ey - sy); drawPageToCanvas(canvasPage, m_nCrtPage); }