DXRAWSURFACEINFO structure
Contains information needed by the IDXRawSurface interface to initialize a DXSurface from a custom raw surface.
Syntax
typedef struct DXRAWSURFACEINFO {
BYTE *pFirstByte;
long lPitch;
unsigned long Width;
unsigned long Height;
const GUID *pPixelFormat;
HDC hdc;
DWORD dwColorKey;
DXBASESAMPLE *pPalette;
} DXRAWSURFACEINFO;
Members
pFirstByte
Pointer to a value of type BYTE that indicates the origin of the raw surface.lPitch
Value of type long that indicates the number of bytes from the beginning of a row to the beginning of the next row. This number can be negative.Width
Value of type unsigned long that indicates the width of the raw surface, in pixels.Height
Value of type unsigned long that indicates the height of the raw surface, in pixels.pPixelFormat
Pointer to the pixel format of the raw surface.hdc
HDC of the raw surface. You should create a memory device context for the raw surface so that clients can make GDI calls to manipulate the surface.dwColorKey
Value of type DWORD 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 three bytes contain the native data type.pPalette
Pointer to an optional palette used for the pixel colors of the raw surface.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows 2000 Server |
Header |
Dxtrans.h |
IDL |
Dxtrans.idl |