Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Graphics.Transform and GethDC

18 views
Skip to first unread message

spam vladimir.cheverdyuk@altium.com.au Vladimir Cheverdyuk

unread,
May 4, 2003, 7:01:26 PM5/4/03
to
Hi all

When I write next code:

Matrix matrix = new Matrix();
matrix.Translate(-deltaX, -delta, MatrixOrder.Append);
graphics.Transform = matrix;
hDC = graphics.GethDC

and after that if I will draw on this hDC using GDI function, it will ignore
transform matrix, so line from 20,20 to 30, 30 will be from 20, 20 to 30,
30, but it should be from 20 - deltax, 20 - deltaY to 30 - deltaX, 30 -
deltaY.

Is it possible to use GDI functions with transform without calling
SetWorldTransform (SetWorldTransform works only on Windows NT family) ?

Regards,
Vladimir


Bob Powell

unread,
May 5, 2003, 4:26:22 AM5/5/03
to
GDI+ drawing does not use the same routines as the Win32 SDK and the GDI+
pipeline is only works on GDI+ surfaces. You will have to do a
SetWorldTransform.

Bob.

--

Check out the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm


"Vladimir Cheverdyuk" <no spam vladimir....@altium.com.au> wrote in
message news:u4zNqEpE...@TK2MSFTNGP11.phx.gbl...

0 new messages