MetafileHeaderEmf.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Advanced / MetafileHeaderEmf.cs / 1305376 / MetafileHeaderEmf.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

namespace System.Drawing.Imaging { 
 
    using System.Diagnostics;
 
    using System;
    using System.Drawing;
    using System.Runtime.InteropServices;
 
    [StructLayout(LayoutKind.Sequential)]
    internal class MetafileHeaderEmf 
    { 
        /// SECREVIEW :  The ENHMETAHEADER structure is defined natively as a union with WmfHeader.
        ///              Extreme care should be taken if changing the layout of the corresponding managaed 
        ///              structures to minimize the risk of buffer overruns.  The affected managed classes
        ///              are the following: ENHMETAHEADER, MetaHeader, MetafileHeaderWmf, MetafileHeaderEmf.
        ///              See ASURT#82822 or changes in Metafile.cs@115636 for more information.
        /// 
         public MetafileType type = MetafileType.Invalid;
         public int size; 
         public int version; 
         public EmfPlusFlags emfPlusFlags = 0;
         public float dpiX; 
         public float dpiY;
         public int X;
         public int Y;
         public int Width; 
         public int Height;
         public SafeNativeMethods.ENHMETAHEADER EmfHeader; 
         public int EmfPlusHeaderSize; 
         public int LogicalDpiX;
         public int LogicalDpiY; 
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK