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 Structures, prefix the name with the module name and a period.
BITMAP (Structures)
.
C# Definition:
[StructLayout(LayoutKind.Sequential)]
public struct BITMAPINFOHEADER
{
public uint biSize;
public int biWidth;
public int biHeight;
public ushort biPlanes;
public ushort biBitCount;
public BitmapCompressionMode biCompression;
public uint biSizeImage;
public int biXPelsPerMeter;
public int biYPelsPerMeter;
public uint biClrUsed;
public uint biClrImportant;
using System;
using System.Runtime.InteropServices;
public void Init()
{
biSize = (uint)Marshal.SizeOf(this);
}
/// <summary>
/// The BITMAP structure defines the type, width, height, color format, and bit values of a bitmap.
/// </summary>
[Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct BITMAP
{
/// <summary>
/// The bitmap type. This member must be zero.
/// </summary>
int bmType;
/// <summary>
/// The width, in pixels, of the bitmap. The width must be greater than zero.
/// </summary>
int bmWidth;
/// <summary>
/// The height, in pixels, of the bitmap. The height must be greater than zero.
/// </summary>
int bmHeight;
/// <summary>
/// The number of bytes in each scan line. This value must be divisible by 2, because the system assumes that the bit
/// values of a bitmap form an array that is word aligned.
/// </summary>
int bmWidthBytes;
/// <summary>
/// The count of color planes.
/// </summary>
int bmPlanes;
/// <summary>
/// The number of bits required to indicate the color of a pixel.
/// </summary>
int bmBitsPixel;
/// <summary>
/// A pointer to the location of the bit values for the bitmap. The bmBits member must be a pointer to an array of
/// character (1-byte) values.
/// </summary>
IntPtr bmBits;
}
VB Definition:
Public Structure BITMAPINFOHEADER
Public biSize As Int32
Public biWidth As Int32
Public biHeight As Int32
Public biPlanes As Int16
Public biBitCount As Int16
Public biCompression As BitmapCompressionMode
Public biSizeImage As Int32
Public biXPelsperMeter As Int32
Public biYPelsPerMeter As Int32
Public biClrUsed As Int32
Public biClrImportant As Int32
End Structure
The unmanaged size of the structure must be set before the structure can be used by the API. This can be done by using the Init() call which uses the Marshal.SizeOf(this) method to get the appropriate size.