Contains information needed by the IDXRawSurface interface to initialize a DXSurface from a custom raw surface.
Syntax
typedef struct DXRAWSURFACEINFO { BYTE * pFirstByte; long lPitch; ULONG Width; ULONG Height; const GUID * pPixelFormat; HDC hdc; DWORD dwColorKey; DXBASESAMPLE * pPalette; } DXRAWSURFACEINFO;
Members
- pFirstByte
- Pointer to the byte at the origin of the raw surface.
- lPitch
- Number of bytes from the beginning of a given row to the beginning of the next row. This number can be negative.
- Width
- Width of the raw surface, in pixels.
- Height
- Height of the raw surface, in pixels.
- pPixelFormat
- Pointer to the pixel format of the raw surface.
- hdc
- Handle to the raw surface device context. You should create a memory device context for the raw surface so that clients can make Graphics Device Interface (GDI) calls to manipulate the surface.
- dwColorKey
- Value used as a color key for the raw surface. The high byte of this value must equal 0xFF for the color keyed surface. The lower 3 bytes contain the native data type.
- pPalette
- Pointer to an optional palette used for the pixel colors of the raw surface.
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.