Skip to content

# IMaskRenderingSurface

Namespace: O2S.Components.PDF4NET.Rendering.RenderingSurfaces

IMaskRenderingSurface supports the internal library infrastructure.

    public interface IMaskRenderingSurface

## Properties

### MaskBitmap

    public abstract object MaskBitmap { get; }

Property Value

Object

### MaskBounds

    public abstract BoundingBox MaskBounds { get; }

Property Value

BoundingBox

## Methods

### Adjust(Byte)

    void Adjust(byte alpha)

Parameters

`alpha` Byte

### ApplyTransferFunction(PDFFunction)

    void ApplyTransferFunction(PDFFunction transferFunction)

Parameters

`transferFunction` PDFFunction

### Expand(BoundingBox)

    IMaskRenderingSurface Expand(BoundingBox expandBounds)

Parameters

`expandBounds` BoundingBox

Returns

IMaskRenderingSurface

### Extract(BoundingBox)

    IMaskRenderingSurface Extract(BoundingBox extractBounds)

Parameters

`extractBounds` BoundingBox

Returns

IMaskRenderingSurface

### GetIndexForPixel(Int32, Int32, Int32, Int32, Int32)

    int GetIndexForPixel(int x, int y, int xOrigin, int yOrigin, int width)

Parameters

`x` Int32

`y` Int32

`xOrigin` Int32

`yOrigin` Int32

`width` Int32

Returns

Int32

### GetMaskLine(Int32, Int32)

    Byte[] GetMaskLine(int y, int yOrigin)

Parameters

`y` Int32

`yOrigin` Int32

Returns

Byte[]

### GetMaskRenderer()

    object GetMaskRenderer()

Returns

Object

### Merge(IMaskRenderingSurface, BoundingBox)

Merges the top mask into the current mask. The top mask is clipped to current mask.

    IMaskRenderingSurface Merge(IMaskRenderingSurface topMask, BoundingBox mergeBounds)

Parameters

`topMask` IMaskRenderingSurface

`mergeBounds` BoundingBox

Returns

IMaskRenderingSurface

### Merge(IMaskRenderingSurface, IMaskRenderingSurface, BoundingBox)

Merges the top mask into the current mask. The top mask is clipped to current mask.

    IMaskRenderingSurface Merge(IMaskRenderingSurface topMask, IMaskRenderingSurface mergedMask, BoundingBox mergeBounds)

Parameters

`topMask` IMaskRenderingSurface

`mergedMask` IMaskRenderingSurface
The result merged mask

`mergeBounds` BoundingBox

Returns

IMaskRenderingSurface

### Union(IMaskRenderingSurface, IMaskRenderingSurface)

    IMaskRenderingSurface Union(IMaskRenderingSurface mask1, IMaskRenderingSurface mask2)

Parameters

`mask1` IMaskRenderingSurface

`mask2` IMaskRenderingSurface

Returns

IMaskRenderingSurface