Matrix Transformations before rendering
-
I have a third-party DLL that I am importing into vb.net code that renders to a device context. Render(HDC, x, y, width, height, scale, rotation_angle) I like being able to use the matrix transformations of GDI+. This makes rotation and zooming and inheriting rotation and zooming easy. However, if I use the graphics object of my drawing surface to change the transformation matrix, then pass the device context to the render function, the rotation does not take effect for the render function. I assume this is because the render function uses GDI and does not enter the GDI+ rendering pipeline. I have tried drawing to a bitmap, then rendering the bitmap to my drawing surface, but at a significant reduction in quality. Does any one have any ideas on how to improve on my work, or am I fighting a losing battle? Kevin