This method allows your driver to get information on the width of the memory allocated for the surface.

virtual DWORD AlignedWidth(void);



Return Values

Returns the aligned width of the current surface. The aligned width is always greater than or equal to the requested surface width. Normally, you would never use this value in conjunction with drawing operations.


When a surface is created, the allocated surface width may differ from the requested surface width. Depending on byte alignment requirements, the requested width might be increased for memory allocation purposes. This operation is invisible to the surface, and does not affect the realized surface width. No drawing occurs in the aligned portion of the surface, so that part of the surface should normally be ignored.


OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header: Ddgpe.h.
Link Library: Ddgpe.lib.

See Also

DDGPESurf Class | DDGPESurf Class Definition

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.