PictureEffects Xojo Plugin |

# RotateEffect.Apply Method

Applies the effect on a given source image.

Apply(
source as Picture,
angle as Double,
backColor as Color,
method as Integer) as Picture

#### Parameters

source
  The source picture to work with. The src picture has to be 32 bits per pixel.
angle
  The number of degrees to rotate. If you pass 90, 180 or 270 to it then native rotation mode for the specified value is selected for extra speed and extra precision. It is perfectly valid to pass a number larger than 360 to this parameter.
backColor
  Use this parameter to choose a color to fill extra area. Extra area is generated when doing free rotation (rotation where the angle is other than 90, 180 or 270 degrees).
method
  Use this parameter to specify the quality of the rotation. (See the rotation constants on this class.)

#### Returns

Picture
  The rotated picture. (This picture usually is not in same width and height as the src picture).
  If the src picture was not 32 bits then a nil will be returned.

#### Remarks

#### See Also

RotateEffect Class