예제 #1
0
 void CanvasGdiplus::ScaleInt(int x, int y)
 {
     Gdiplus::Graphics* current = GetCurrentGraphics();
     current->ScaleTransform(static_cast<Gdiplus::REAL>(x),
         static_cast<Gdiplus::REAL>(y));
 }
예제 #2
0
void Graphics::ScaleTransform(float dx, float dy, MatrixOrder order) {
    Gdiplus::Graphics* g = reinterpret_cast<Gdiplus::Graphics*>(_private);
    g->ScaleTransform(dx, dy, order == MatrixOrderPrepend ? Gdiplus::MatrixOrderPrepend : Gdiplus::MatrixOrderAppend);
}