Class OpacityMetadata
Marks an area of an input image as opaque, so internal rendering optimizations to the graph are possible.
public class OpacityMetadata : Effect
- Inheritance
-
OpacityMetadata
- Inherited Members
Remarks
This effect doesn't modify the image itself to be opaque. It modifies data associated with the image so the renderer assumes the specified region is opaque.
Constructors
OpacityMetadata(DeviceContext)
Creates a new instance of the OpacityMetadata class.
public OpacityMetadata(DeviceContext deviceContext)
Parameters
deviceContext
DeviceContextThe device context where this effect is attached to.
Properties
OpaqueRectangle
The portion of the source image that is opaque. The default is the entire input image.
public RawVector4 OpaqueRectangle { get; set; }
Property Value
- RawVector4