PictureEffects REALbasic Plugin

ReplaceColorEffect Class

A class to replace colors in images.



This class supports use of multiple CPU cores on MacOS X, Windows and Linux systems.

MPImageFilter
   ReplaceColorEffect

class ReplaceColorEffect implements

IGraphicsEffect

IGraphicsEffectInPlace

Properties

FillColorSets FillColor for the operation of the simple version of the Apply functions.
MaskSets mask for the operation of the simple version of the Apply functions.
OuterFillSets OuterFill for the operation of the simple version of the Apply functions.
ShadingSets Shading for the operation of the simple version of the Apply functions.
SourceColorSets SourceColor for the operation of the simple version of the Apply functions.
ToleranceSets Tolerance for the operation of the simple version of the Apply functions.
CPUCoreCount (Inherited)Returns number of detected CPU cores on the running machine.
ErrorCode (Inherited)Returns error code after applying the effect. This value is a Constant defined in the PictureEffectsError module.
MultiprocessingHint (Inherited)Use this property to fine tune CPU usage for this algorithm. By default this property is set to zero (Automatic). This property accepts all constants that are defined in PictureEffectsCPUUsage.
ProgressHandler (Inherited)Use this property 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.

Methods

ApplyApplies the effect on a given 32 bit source image with a given 32 bit mask and returns the result to a new image.
ApplyApplies the effect on a given 32 bit source image with parameters that have been set on the class instance.
ApplyInPlaceApplies the effect in place on a given 32 bit source image with a given 32 bit mask.
ApplyInPlaceApplies the effect in place on a given 32 bit source image with parameters that have been set on the class instance.

Supported Platforms:

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

    Unsupported Platforms: