DirectX input surface may have different size output surface
Some Times the input surface may have different size output surface.
How can we make perfectly work with any type of Output ?
Solution :
1.Copy the input surface image to the the output surface image (with input surface image width and height alone)
2. Stretch the input surface image to the output surface image
Do the following steps for stretching :
1.Read data from input Surface
2.Perform operation on raw image data
3.Set the processed data to the input Surface.
4.Using IDXTScale resize the inputSurface image and copy it to the output surface.
How can we make perfectly work with any type of Output ?
Solution :
1.Copy the input surface image to the the output surface image (with input surface image width and height alone)
2. Stretch the input surface image to the output surface image
Do the following steps for stretching :
1.Read data from input Surface
2.Perform operation on raw image data
3.Set the processed data to the input Surface.
4.Using IDXTScale resize the inputSurface image and copy it to the output surface.
Labels: DirectX Transform
0 Comments:
Post a Comment
<< Home