| PictureEffects REALbasic Plugin |
|
ContrastStretchEffect Class
A class to do contrast stretch effect.

Normalization is a process that changes the range of pixel intensity values. Applications include photographs with poor contrast due to glare, for example. Normalization is sometimes called contrast stretching.
This class supports use of multiple CPU cores on MacOS X, Windows and Linux systems.
MapEffect
ContrastStretchEffect
Properties
Mask | Sets mask for the operation of the simple version of the Apply functions. |
IgnoreAlpha (Inherited) | If set to true then the alpha channel of the source image will not be included in the destination image. |
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
Apply | Applies the effect on a given 32 bit source image with a given 32 bit mask and returns the result to a new image. |
Apply | Applies the effect on a given 32 bit source image with parameters that have been set on the class instance. |
Apply (Inherited) | Applies the effect on a given source image with a given mask. |
ApplyInPlace | Applies the effect in place on a given 32 bit source image with a given 32 bit mask. |
ApplyInPlace | Applies the effect in place on a given 32 bit source image with parameters that have been set on the class instance. |
ApplyInPlace (Inherited) | Applies the effect on a given source image with a given mask without creating a new image, the result is written into the source image. Very Important read the remarks. |
Supported Platforms:
MacOS X PPC - (Mach-O)MacOS X Universal Binary (Mach-O)MacOS X Cocoa Universal Binary (Mach-O)Win32 - WindowsLinux x86Unsupported Platforms: