Document Solutions for Imaging
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / BitmapRenderer Class / TransparencyMaskBitmap Property

In This Topic
    TransparencyMaskBitmap Property
    In This Topic
    Gets or sets a grayscale bitmap providing transparency mask for all drawing and filling operations.

    Pixels in the mask with value 0 are fully opaque and will completely mask any drawing (i.e. the pixels of the target bitmap will remain unchanged). Pixels in the mask with value 255 are fully transparent, i.e. any drawing will have the same effect as if there was no mask. Pixels with values between 0 and 255 will modify the transparency of the pixels being drawn according to their value.

    Note that the transparency mask bitmap must be of the same pixel size as the target bitmap.

    Syntax
    'Declaration
     
    Public Property TransparencyMaskBitmap As GrayscaleBitmap
    public GrayscaleBitmap TransparencyMaskBitmap {get; set;}
    See Also