Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

GM_ (gdi32)
 
.
Summary

C# Constants:

    /// <summary>
    ///   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.
    /// </summary>
    public const int GM_COMPATIBLE = 0x1;

    /// <summary>
    ///   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.
    /// </summary>
    public const int GM_ADVANCED = 0x2;

C# enumeration

    /// <summary>
    ///   The graphics mode that can be set by SetGraphicsMode.
    /// </summary>
    public enum GraphicsMode : int {
      /// <summary>
      ///   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.
      /// </summary>
      GM_COMPATIBLE = 1,
      /// <summary>
      ///   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.
      /// </summary>
      GM_ADVANCED = 2,
    }

VB Constants:

TODO

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation
GM_ on MSDN

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).

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions