Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than gdi32, prefix the name with the module name and a period.
SetGraphicsMode (gdi32)
.
C# Signature:
/// <summary>
/// The SetGraphicsMode function sets the graphics mode for the specified device context.
/// </summary>
/// <param name="hdc">Device Context to operate on</param>
/// <param name="iMode">The graphics mode. This parameter can be one of the following values.
/// Value Meaning GM_COMPATIBLE Sets the graphics mode that is compatible with 16-bit Windows.
/// This is the default mode. If this value is specified, the application can only modify the
/// world-to-device transform by calling functions that set window and viewport extents and
/// origins, but not by using SetWorldTransform or ModifyWorldTransform; calls to those functions
/// will fail. Examples of functions that set window and viewport extents and origins are
/// SetViewportExtEx and SetWindowExtEx.
/// GM_ADVANCED Sets the advanced graphics mode that allows world transformations.
/// This value must be specified if the application will set or modify the world transformation
/// for the specified device context. In this mode all graphics, including text output, fully conform
/// to the world-to-device transformation specified in the device context.</param>
/// <returns>If the function succeeds, the return value is the old graphics mode.
/// If the function fails, the return value is zero. </returns>
[DllImport("gdi32.dll")]
public static extern int SetGraphicsMode(IntPtr hdc, int iMode);
[DllImport("gdi32.dll")]
static extern int SetGraphicsMode(IntPtr hdc, int iMode);
Constants used by GetGraphicsMode and SetGraphicsMode.
2/21/2010 1:32:34 PM - -88.107.79.103
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).