ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX.Direct2D Namespace / RenderTarget Class / FillOpacityMask Method / FillOpacityMask(Bitmap,Brush,OpacityMaskContent) Method
The opacity mask to apply to the brush. The alpha value of each pixel in the region specified by sourceRectangle is multiplied with the alpha value of the brush after the brush has been mapped to the area defined by destinationRectangle.
The brush used to paint the region of the render target specified by destinationRectangle.
The type of content the opacity mask contains. The value is used to determine the color space in which the opacity mask is blended.

In This Topic
    FillOpacityMask(Bitmap,Brush,OpacityMaskContent) Method
    In This Topic
    Applies the opacity mask described by the specified bitmap to a brush and uses that brush to paint a region of the render target.
    Syntax
    'Declaration
     
    Public Overloads Sub FillOpacityMask( _
       ByVal opacityMask As Bitmap, _
       ByVal brush As Brush, _
       ByVal content As OpacityMaskContent _
    ) 
    public void FillOpacityMask( 
       Bitmap opacityMask,
       Brush brush,
       OpacityMaskContent content
    )

    Parameters

    opacityMask
    The opacity mask to apply to the brush. The alpha value of each pixel in the region specified by sourceRectangle is multiplied with the alpha value of the brush after the brush has been mapped to the area defined by destinationRectangle.
    brush
    The brush used to paint the region of the render target specified by destinationRectangle.
    content
    The type of content the opacity mask contains. The value is used to determine the color space in which the opacity mask is blended.
    See Also