Leadtools.Windows.Media.Effects Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
MathematicalFunctionCommandBitmapEffect Class
See Also  Members  
Leadtools.Windows.Media.Effects.Color Namespace : MathematicalFunctionCommandBitmapEffect Class




Re-maps the image colors according to a mathematical function such as: square, logarithm, square root, sine and cosine.

Syntax

Visual Basic (Declaration) 
Public Class MathematicalFunctionCommandBitmapEffect 
   Inherits RasterCommandBitmapEffect
Visual Basic (Usage)Copy Code
Dim instance As MathematicalFunctionCommandBitmapEffect
C# 
public class MathematicalFunctionCommandBitmapEffect : RasterCommandBitmapEffect 
Managed Extensions for C++ 
public __gc class MathematicalFunctionCommandBitmapEffect : public RasterCommandBitmapEffect 
C++/CLI 
public ref class MathematicalFunctionCommandBitmapEffect : public RasterCommandBitmapEffect 

Example

Run the MathematicalFunctionCommandBitmapEffect on an image with square function selected and factor = 50.

Remarks

  • This class uses the RGB color space.
  • This class makes it possible to apply one of five mathematical functions to an image's pixel values: square, square root, logarithm, sine and cosine.
  • Set the mathematical operation to be performed on each pixel’s values in the Type property. The resulting values are multiplied by the Factor property value. The Factor property can be any value greater than 0. It is divided internally by different amounts, according to the type of the function being used.
  • This class supports 12 and 16-bit grayscale and 48 and 64-bit color images. Support for 12 and 16-bit grayscale and 48 and 64-bit color images is available only in the Document/Medical toolkits.
  • This command does not support 32-bit grayscale images.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Freezable
            System.Windows.Media.Animation.Animatable
               System.Windows.Media.Effects.BitmapEffect
                  Leadtools.Windows.Media.Effects.RasterCommandBitmapEffect
                     Leadtools.Windows.Media.Effects.Color.MathematicalFunctionCommandBitmapEffect

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also