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

XFORM (gdi32)
 
.
Summary

C# Definition

    /// <summary>
    ///   The XFORM structure specifies a world-space to page-space transformation.
    /// </summary>
    [StructLayout(LayoutKind.Sequential)]
    public struct XFORM {
      public float eM11;
      public float eM12;
      public float eM21;
      public float eM22;
      public float eDx;
      public float eDy;

      public XFORM(float eM11, float eM12, float eM21, float eM22, float eDx, float eDy) {
        this.eM11 = eM11;
        this.eM12 = eM12;
        this.eM21 = eM21;
        this.eM22 = eM22;
        this.eDx = eDx;
        this.eDy = eDy;
      }

      /// <summary>
      ///   Allows implicit converstion to a managed transformation matrix.
      /// </summary>
      public static implicit operator System.Drawing.Drawing2D.Matrix(XFORM xf) {
        return new System.Drawing.Drawing2D.Matrix(xf.eM11, xf.eM12, xf.eM21, xf.eM22, xf.eDx, xf.eDy);
    return new System.Drawing.Drawing2D.Matrix(xf.eM11, xf.eM12, xf.eM2, xf.eM22, xf.eDx, xf.eDy);
      }

      /// <summary>
      ///   Allows implicit converstion from a managed transformation matrix.
      /// </summary>
      public static implicit operator XFORM(System.Drawing.Drawing2D.Matrix m) {
        float[] elems = m.Elements;
        return new XFORM(elems[0], elems[1], elems[2], elems[3], elems[4], elems[5]);
    float[] elems = m.Elements;
    return new XFORM(elems[0], elems[1], elems[2], elems[3], elems[4], elems[5]);
      }
    }

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation
XFORM 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