The Microsoft® DirectX® Media Software Development Kit (SDK) provides a number of basic C++ code samples to help you learn about the features of the transforms.
The source code and Microsoft® Visual Studio® projects for each sample are located in the \DXMedia\Samples\Multimedia\DTrans\C++\ folder. If you need assistance configuring Visual Studio to compile these samples, consult the Building DirectX Transform Samples and Applications article.
For more information, see the following topics.
These articles describe following examples in a thorough, step-by-step manner.
Article title | Description |
---|---|
The Wipe Transform | This sample shows how to write a 2-D image transform. |
The Ripple Transform | This sample shows how to write a 3-D mesh transform. |
The WipeDlg Application | This sample uses the transform contained in Wipe.dll for a Microsoft® Windows® application. |
Sample folder name | Description |
---|---|
DXSurf1 | This sample shows how to use a DXSurface to load an image file and display it as a second, full-screen exclusive mode DXSurface. |
DXSurf2 | This sample shows how DXSurfaces enable alpha blending for images. The application fades one image in and out over a background image. The images are loaded into DXSurfaces, which are attached to a DXSurfaceModifier (Surface Modifier) foreground and background surfaces. The opacity of the foreground image over the background is changed with the Surface Modifier in a timed loop. |
DXSurf3 | This sample shows how to use a transform to scale an image to fit a window. It also manipulates the color components of DXSurface samples, and composites the result over the scaled image. |
SurfMod | This sample shows how Surface Modifiers can be used to combine images in creative ways. The sample consists of 12 frames that can be changed with the right and left arrow keys. Each frame displays the result of a different Surface Modifier set up. At the bottom of each frame in red type are the properties of the current Surface Modifier and in green type are notes or hints that can be helpful when using Surface Modifiers in this way. Because they work well with Surface Modifiers, lookup tables are also demonstrated briefly in the sample. |
Grad | This sample shows how to create a procedural surface. The surface is a four-color gradient image, built by specifying a color for each corner of a DXSurface. The sample shows how to implement your own DXSurface and override the CDXARGBReadPtr::FillSamples function to produce the transform output. |
GeoTrans | This sample shows how to use 3-D transforms and meshes and display the result in a window. |
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.