Hello!
I'm wondering how to zoom text output and other GDI functions. Under Windows NT, there is the SetWorldTransform function, but there is no such function under 9x platforms. So how do people normally accomplish this??
--Chorus
I'm wondering how to zoom text output and other GDI functions. Under Windows NT, there is the SetWorldTransform function, but there is no such function under 9x platforms. So how do people normally accomplish this??
--Chorus
(1) SetMapMode with either MM_ISOTROPIC (equally scaled axes) or MM_ANISOTROPIC
(2) SetWindowExtEx with the 'real' dimensions of the output area (which may be the client area of a window)
(3) SetViewportExtEx with the 'zoomed' dimensions - so to zoom a window's contents by a factor of 4, use the client area's dimensions multiplied by 4 as the horizontal and vertical extents
I think this works with all GDI functions (including DrawText)
(2) SetWindowExtEx with the 'real' dimensions of the output area (which may be the client area of a window)
(3) SetViewportExtEx with the 'zoomed' dimensions - so to zoom a window's contents by a factor of 4, use the client area's dimensions multiplied by 4 as the horizontal and vertical extents
I think this works with all GDI functions (including DrawText)
Thanks, eGo
Hmmm thats interesting
Is there also a way to rotate a bitmap without SetWorld...
Like its in 3d space that is
Is there also a way to rotate a bitmap without SetWorld...
Like its in 3d space that is