MFC Support for Direct2D – Transforms (1)
Direct2D supports linear transforms like translation, scale, rotation, and skew.If using MFC, we can apply transforms to render targets by calling CRenderTarget::SetTransform. Here is an example that shifts the render target 100 points on x-axis and 150 points on y-axis. It looks not very handy to fill the matrix structure, so Matrix3x2F utility class can … Read more