Copying to Surfaces


Several restrictions apply when using Device.UpdateSurface to copy to a surface. You can pass a rectangle on the source surface, or use null to specify the entire surface. You can also pass a point on the destination surface to which the upper left position of the rectangle on the source image is copied.

The Device.UpdateSurface method does not support clipping. Unless the source rectangle and the corresponding destination rectangle are completely contained within the source and destination surfaces respectively, the operation will fail. Note that the destination and source surfaces must be distinct. The method also does not support alpha blending, color keys, or format conversion.

The following methods also are available for copying images to a Microsoft Direct3D surface.

Related Topics


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center