Contains the information needed by the DXDitherArray helper function to dither an array of samples. You can use dithering to produce the effect of 32-bit and 16-bit color with an 8-bit color palette. The dithering algorithm uses a 4 × 4 dither pattern to produce the output.
Syntax
typedef struct DXDITHERDESC { DXBASESAMPLE * pSamples; ULONG cSamples; ULONG x; ULONG y; DXSAMPLEFORMATENUM DestSurfaceFmt; } DXDITHERDESC;
Members
- pSamples
- Pointer to the samples to dither onto the output surface.
- cSamples
- Number of samples in the pSamples buffer to dither.
- x
- The x-coordinate of the output surface.
- y
- The y-coordinate of the output surface.
- DestSurfaceFmt
- Pixel format of the destination surface.
See Also
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.