TypeLib Xojo support Plugin |

# RawBitmapMask.CreateHorizontalFadingMask Method

Creates a horizontal fading mask that starts its fade at given location and has a given width.

shared CreateHorizontalFadingMask(
start as UInt32,
width as UInt32) as RawBitmapMask

#### Parameters

start
  Starting horizontal location of the fading mask.
width
  The width of the fading mask.

#### Returns

RawBitmapMask
  Instance of RawBitmapMask.

#### Remarks

Use the Inverted property if you want to flip around on which side the mask is solid and which it is not.
In this example we create horizontal fading mask and apply it to the Sepia effect in the PictureEffectsRaw plugin:

Dim effect as SepiaEffectRaw = new SepiaEffectRaw()
effect.Mask = RawBitmapMask.CreateHorizontalFadingMask(25, m_PictureSource.Width - 50)
result = effect.Apply(m_PictureSource,35)
And the result is:
Full sepia at left side for the first 25 pixels, then fades from sepia to normal picture for the Pictures width - 50 and then finally full normal picture for last 25 pixels.

#### See Also

RawBitmapMask Class