|
|
|
IDXSurfaceFactory Interface |
|
IID_IDXSurfaceFactory |
{144946F5-C4D4-11D1-81D1-0000F87557DB} |
|
The IDXSurfaceFactory interface provides methods to create and load data into DXSurface data objects.
Remarks
The most commonly
used method of this interface is IDXSurfaceFactory::CreateSurface,
which creates an uninitialized DXSurface of a specified size and
pixel format. The IDXSurfaceFactory::LoadImage method is also useful.
This method translates an image from a common image format, such as .gif,
.jpg, and .bmp, and stores the result in a new DXSurface.
|
|
Methods in VTable order |
|
|
IUnknown Methods |
Description |
|
QueryInterface |
Returns pointers to supported interfaces. |
|
AddRef |
Increments reference count. |
|
Release |
Decrements reference count. |
|
IDXSurfaceFactory Members |
Description |
|
CreateSurface |
Creates a DXSurface object of the specified size and format. |
|
CreateFromDDSurface |
Creates a DXSurface that contains a specified DirectDrawSurface object. |
|
LoadImage |
Binds the specified file name or URL and returns a DXSurface containing the image data. |
|
LoadImageFromStream |
Loads an image from a stream and returns a DXSurface. |
|
CopySurfaceToNewFormat |
Copies one surface to another and changes its pixel format. |
|
CreateD3DRMTexture |
Not currently supported. |
|
BitBlt |
Copies samples from one DXSurface to another. |
|
CreateSurface |
|
FUNCTION
IDXSurfaceFactory_CreateSurface
( _ , BYVAL pDirectDraw AS DWORD _ , BYVAL pDDSurfaceDesc AS DWORD _ , BYREF pFormatID AS GUID _ , BYREF pBounds AS DXBNDS _ , BYVAL dwFlags AS DWORD _ , BYVAL punkOuter AS DWORD _ , BYREF riid AS GUID _ , BYREF ppDXSurface AS DWORD _ ) AS
LONG |
|
CreateFromDDSurface |
|
FUNCTION
IDXSurfaceFactory_CreateFromDDSurface
( _ , BYVAL pDDrawSurface AS DWORD _ , BYREF pFormatID AS GUID _ , BYVAL dwFlags AS DWORD _ , BYVAL punkOuter AS DWORD _ , BYREF riid AS GUID _ , BYREF ppDXSurface AS DWORD _ ) AS LONG
|
|
LoadImage |
|
FUNCTION
IDXSurfaceFactory_LoadImage
( _ , BYVAL pszFileName AS STRING _ , BYVAL pDirectDraw AS DWORD _ , BYVAL pDDSurfaceDesc AS DWORD _ , BYREF pFormatID AS GUID _ , BYREF riid AS GUID _ , BYREF ppDXSurface AS DWORD _ ) AS
LONG |
|
LoadImageFromStream |
|
FUNCTION
IDXSurfaceFactory_LoadImageFromStream
( _ , BYVAL pStream AS DWORD _ , BYVAL pDirectDraw AS DWORD _ , BYVAL pDDSurfaceDesc AS DWORD _ , BYREF pFormatID AS GUID _ , BYREF riid AS GUID _ , BYREF ppDXSurface AS DWORD _ ) AS LONG
|
|
CopySurfaceToNewFormat |
|
FUNCTION
IDXSurfaceFactory_CopySurfaceToNewFormat
( _ , BYVAL pDirectDraw AS DWORD _ , BYVAL pDDSurfaceDesc AS DWORD _ , BYREF pDestFormatID AS GUID _ , BYREF ppNewSurface AS DWORD _ ) AS
LONG |
|
CreateD3DRMTexture |
|
FUNCTION
IDXSurfaceFactory_CreateD3DRMTexture
( _ , BYVAL pSrc AS DWORD _ , BYVAL pDirectDraw AS DWORD _ , BYVAL pD3DRM3 AS DWORD _ , BYREF riid AS GUID _ , BYREF ppTexture3 AS DWORD _ ) AS
LONG |
|
BitBlt |
|
FUNCTION
IDXSurfaceFactory_BitBlt
( _ , BYVAL pDest AS DWORD _ , BYREF pPlacement AS DXVEC _ , BYVAL pSrc AS DWORD _ , BYREF pClipBounds AS DXBNDS _ , BYVAL dwFlags AS DWORD _ ) AS
LONG |
Page last updated on Monday, 03 April 2006 19:48:38 +0200