ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 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 System.Integer, _
       ByVal sourceRegion As System.Nullable(Of ResourceRegion), _
       ByVal destination As Resource, _
       ByVal destinationSubResource As System.Integer, _
       Optional ByVal dstX As System.Integer, _
       Optional ByVal dstY As System.Integer, _
       Optional ByVal dstZ As System.Integer _
    ) 
    public void CopySubresourceRegion( 
       Resource source,
       System.int sourceSubresource,
       System.Nullable<ResourceRegion> sourceRegion,
       Resource destination,
       System.int destinationSubResource,
       System.int dstX,
       System.int dstY,
       System.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