Partager via


DDGPESurf::AlignedWidth (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

virtual DWORD AlignedWidth();

Parameters

None.

Return Value

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

Header ddgpe.h
Library Ddgpe.lib
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Concepts

DDGPESurf Class
DDGPESurf Class Definition