次の方法で共有


DDGPESurf::Init (Windows Embedded CE 6.0)

1/6/2010

This method is similar to the GPESurf::Init method. In addition to its counterpart's methods, the DDGPESurf::Init method initializes the pixel format for the current surface. Because DDGPESurf and GPE set up their member variables in their own constructors, your driver will typically not call this method. If the constructor for your custom surface object does not call a DDGPESurf constructor, call this method to ensure that all surface information is set up properly.

Syntax

virtual void Init(
  int width, 
  int height, 
  void* pBits, 
  int stride, 
  EGPEFormat format, 
  EDDGPEPixelFormat pixelFormat 
);

Parameters

  • width
    The requested width for the surface, in pixels.
  • height
    The requested height for the surface, in pixels.
  • pBits
    A pointer that has been allocated for the surface's graphic data.
  • stride
    The requested stride for the surface.
  • format
    The requested format for the surface.
  • pixelFormat
    The requested pixel format for the surface.

Return Value

None.

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