PictureEffectsRaw Xojo Plugin

BlendEffectRaw.Apply Method (console safe)

Applies the effect on a RawBitmap image taking in parameters for the various of settings of the blend.

Apply(
   source as RawBitmap,
   fillBitmap as RawBitmap,
   opacity as Double,
   fillMask as RawBitmapMask,
   location as PointF,
   size as SizeF) as RawBitmap

Parameters

source
The source image as RawBitmap
fillBitmap
The RawBitmap to draw onto the source RawBitmap.
opacity
The opacity value of the FillBitmap. (0.01 to 1.0)
fillMask
To limit the filtering to certain pixels then set a RawBitmapMask instance to define the mask to this property.

Set this property to nil if the filtering should not be limited to certain pixels.

The mask can be any kind of mask that TypeLib supports, like Rect mask, Polygon mask, Fading mask, Bitmap mask, etc.
location
Defines where on the src picture the fillPicture should be drawn.

You may set this parameter to nil. If nil is passed to this parameter then the picture will be drawn at location (0,0).
size
Limits the size of the FillBitmap.

If the values passed in this parameter are bigger than the FillBitmap or smaller than zero then this parameter will be ignored.

You may pass nil to this parameter. Passing nil to this parameter will make it default to the size of the FillBitmap.

Returns

RawBitmap
The result as RawBitmap or nil if there was error

Remarks

See Also

BlendEffectRaw Class