PictureEffects REALbasic Plugin

PolarCoordinates Method

Use this function to transform polar coordinates to rectangular coordinates or rectangular coordinates to polar coordinates.

PolarCoordinates(
   src as Picture,
   rectangularToPolar as Boolean,
   flipMapping as Boolean,
   backColor as Color,
   progress as IProgressHandler) as Picture

Parameters

src
The source picture to work with (has to be a 32 bit image).
rectangularToPolar
Set to true to do rectangular to polar transform, set to false to do polar to rectangular transform.
flipMapping
Set to true to flip the mapping to the other direction.
backColor
The color that will be used to fill the area around the circle when doing Rectangular to Polar transform.
progress
Use this parameter to use a progress class to get progress feedback from this function. This class must be a class that Implements the IProgressHandler Interface which is defined in this plugin.

Pass nil to this parameter if you don't need progress feedback.

Progress feedback will slow the filter down.

Returns

Picture
If the filter was successful: A reference to the modified picture.

If the src picture was not 32 bits then a nil will be returned.

Remarks

Supported Platforms:

  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • Win32 - Windows
  • Linux x86

    Unsupported Platforms:

    See Also

    GlobalMethods Global