19,468
社区成员
发帖
与我相关
我的任务
分享
GraphicsPath rectPath; //一个矩形
PointF gPoints[4] = { PointF(100, 10 ), PointF( 200, 10 ), PointF( 200, 80 ), PointF( 100, 80 ) };
rectPath.AddLines( gPoints, 4 );
rectPath.CloseFigure();
Graphics->DrawPath( &Pen( Color::Green ), &rectPath ); //没放大之前
Matrix mx; //放大
mx.Scale( 2.0f, 2.0f, MatrixOrderPrepend );
rectPath.Transform( &mx );
Graphics->DrawPath( &Pen( Color::Red ), &rectPath ); //放大以后