ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 Assembly / C1.Util.DX.Direct3D11 Namespace / DeviceContext Class / CopySubresourceRegion Method
A reference to the source resource (see Resource).
Source subresource index.
A reference to a 3D box (see ResourceRegion) that defines the source subresources that can be copied. If NULL, the entire source subresource is copied. The box must fit within the source resource.
A reference to the destination resource (see Resource).
Destination subresource index.
The x-coordinate of the upper left corner of the destination region.
The y-coordinate of the upper left corner of the destination region. For a 1D subresource, this must be zero.
The z-coordinate of the upper left corner of the destination region. For a 1D or 2D subresource, this must be zero.

In This Topic
    CopySubresourceRegion Method
    In This Topic
    Copy a region from a source resource to a destination resource.
    Syntax
    'Declaration
     
    Public Sub CopySubresourceRegion( _
       ByVal source As Resource, _
       ByVal sourceSubresource As Integer, _
       ByVal sourceRegion As Nullable(Of ResourceRegion), _
       ByVal destination As Resource, _
       ByVal destinationSubResource As Integer, _
       Optional ByVal dstX As Integer, _
       Optional ByVal dstY As Integer, _
       Optional ByVal dstZ As Integer _
    ) 
    public void CopySubresourceRegion( 
       Resource source,
       int sourceSubresource,
       Nullable<ResourceRegion> sourceRegion,
       Resource destination,
       int destinationSubResource,
       int dstX,
       int dstY,
       int dstZ
    )

    Parameters

    source
    A reference to the source resource (see Resource).
    sourceSubresource
    Source subresource index.
    sourceRegion
    A reference to a 3D box (see ResourceRegion) that defines the source subresources that can be copied. If NULL, the entire source subresource is copied. The box must fit within the source resource.
    destination
    A reference to the destination resource (see Resource).
    destinationSubResource
    Destination subresource index.
    dstX
    The x-coordinate of the upper left corner of the destination region.
    dstY
    The y-coordinate of the upper left corner of the destination region. For a 1D subresource, this must be zero.
    dstZ
    The z-coordinate of the upper left corner of the destination region. For a 1D or 2D subresource, this must be zero.
    See Also