set_bounds


Description:

public void set_bounds (int x, int y, uint width, uint height)

Sets the bounding box of the effect.

The effect will essentially treat this box as a clipping rectangle. Setting width or height to typeof (unichar2)0 will use the width or height of the Actor the effect is attached to.

Note:

The effect border will apply to the bounds, and not to the un-altered rectangle, so an effect with an x of typeof (unichar2)5 and a left -border of typeof (unichar2)5 will have a gap of 5 blank pixels to the left, with a fade length of 5 pixels.

Parameters:

this

A FadeEffect

x

The x value of the effect bounds, in pixels

y

The y value of the effect bounds, in pixels

width

The width of the effect bounds, in pixels, or typeof ( unichar2)0

height

The height of the effect bounds, in pixels, or typeof ( unichar2)0