Compartir a través de


DDGPESurf::AlignedWidth (Windows CE 5.0)

Send Feedback

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

virtual DWORD AlignedWidth(void);

Parameters

None.

Return Values

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

Remarks

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. Because no drawing occurs in the aligned portion of the surface, that part of the surface would typically be ignored.

Requirements

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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.