Dela via


CompositionTexture.SourceRect Property

Definition

Gets and sets the portion of an overall Direct3D texture that the composition texture represents (and samples from). This allows you to have multiple composition textures referencing the same Direct3D texture.

public:
 property RectInt32 SourceRect { RectInt32 get(); void set(RectInt32 value); };
RectInt32 SourceRect();

void SourceRect(RectInt32 value);
public RectInt32 SourceRect { get; set; }
var rectInt32 = compositionTexture.sourceRect;
compositionTexture.sourceRect = rectInt32;
Public Property SourceRect As RectInt32

Property Value

The region of a Direct3D texture that the composition texture represents.

Applies to