次の方法で共有


D3DM_STRETCHRECT (Windows Embedded CE 6.0)

1/6/2010

This structure contains the contents of the D3DMOP_STRETCHRECT command token (see D3DM_OPERATION), which informs the driver that should copy pixels from one surface to another and, if necessary, performing stretch operation in the process.

Syntax

typedef struct _D3DM_STRETCHRECT {
  ULONG SourceId;
  RECT SourceRect;
  ULONG DestId;
  RECT DestRect;
  D3DMTEXTUREFILTERTYPE Filter;
} D3DM_STRETCHRECT, * LPD3DM_STRETCHRECT;

Members

  • SourceId
    A ULONG value containing the address of the source surface.
  • SourceRect
    A RECT structure that specifies which part of the source surface the driver should copy.
  • DestId
    A ULONG value containing the address of the destination surface.
  • DestRect
    A RECT structure that specifies the area on the destination surface that data from SourceRect will be copied to. If the areas specified by SourceRect and DestRect do not have the same dimensions then the driver must perform a stretch operation to fit the source data to the destination.
  • Filter
    An element of the D3DMTEXTUREFILTERTYPE that specifies the type of mipmap filtering the driver should use.

Remarks

Direct3D Mobile drivers must support stretch operations between two surfaces with identical formats.

Requirements

Header d3dmddk.h
Windows Embedded CE Windows CE 5.0

See Also

Reference

Direct3D Mobile Driver Structures
D3DM_OPERATION

Other Resources

RECT
D3DMTEXTUREFILTERTYPE