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

PIXELFORMATDESCRIPTOR (Structures)
 
.
Summary
The PIXELFORMATDESCRIPTOR structure describes the pixel format of a drawing surface.

C# Definition:

[StructLayout(LayoutKind.Sequential)]
public struct PixelFormatDescriptor
{
   public ushort Size;
   public ushort Version;
   public PixelFormatDescriptorFlags Flags;
   public PixelType PixelType;
   public byte ColorBits;
   public byte RedBits;
   public byte RedShift;
   public byte GreenBits;
   public byte GreenShift;
   public byte BlueBits;
   public byte BlueShift;
   public byte AlphaBits;
   public byte AlphaShift;
   public byte AccumBits;
   public byte AccumRedBits;
   public byte AccumGreenBits;
   public byte AccumBlueBits;
   public byte AccumAlphaBits;
   public byte DepthBits;
   public byte StencilBits;
   public byte AuxBuffers;
   public byte LayerType;
   private byte Reserved;
   public uint LayerMask;
   public uint VisibleMask;
   public uint DamageMask;

   //Use this function to make a new one with Size and Version already filled in.
   public static PixelFormatDescriptor Build()
   {
       var pfd = new PixelFormatDescriptor
       {
       Size = (ushort)Marshal.SizeOf(typeof(PixelFormatDescriptor)),
       Version = 1
       };

       return pfd;
   }
}

VB Definition:

Structure PIXELFORMATDESCRIPTOR
   Public TODO
End Structure

User-Defined Field Types:

None.

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

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