Atalasoft dotImage Send comments on this topic.
CurvesCommand Class
See Also  Members   Example 
Atalasoft.dotImage Assembly > Atalasoft.Imaging.ImageProcessing.Effects Namespace : CurvesCommand Class




Applies a color curve to an image, similar to the Photoshop Curves method.

The curves are defined by an array of one or more PointF objects.

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class CurvesCommand 
   Inherits ApplyLutCommandBase
   Implements IThreadableCommand 
Visual Basic (Usage)Copy Code
Dim instance As CurvesCommand
C# 
[SerializableAttribute()]
public class CurvesCommand : ApplyLutCommandBase, IThreadableCommand  
Managed Extensions for C++ 
[SerializableAttribute()]
public __gc class CurvesCommand : public ApplyLutCommandBase, IThreadableCommand  
C++/CLI 
[SerializableAttribute()]
public ref class CurvesCommand : public ApplyLutCommandBase, IThreadableCommand  

Example

This example applies a simple color curve to an image.
C#Copy Code
// Load an image.
AtalaImage myImage = new AtalaImage("C:\\mytestimage.jpg");

// Apply a simple curve.
PointF[] points = new PointF[2];
points
[0] = new PointF(0.3, 0.6);
points
[1] = new PointF(0.6, 0.8);

CurvesCommand cmd =
new CurvesCommand(points, ChannelFlags.AllChannels);
cmd.ApplyToImage(myImage);
Visual BasicCopy Code
' Load an image.
Dim myImage As AtalaImage = New AtalaImage("C:\\mytestimage.jpg")

' Apply a simple curve.
Dim points() As PointF = New PointF(1) {}
points(0) = New PointF(0.3, 0.6)
points(1) = New PointF(0.6, 0.8)

Dim cmd As CurvesCommand = New CurvesCommand(points,ChannelFlags.AllChannels)
cmd.ApplyToImage(myImage)

Inheritance Hierarchy

System.Object
   Atalasoft.Imaging.ImageProcessing.ImageCommand
      Atalasoft.Imaging.ImageProcessing.ImageRegionCommand
         Atalasoft.Imaging.ImageProcessing.Channels.ApplyLutCommandBase
            Atalasoft.Imaging.ImageProcessing.Effects.CurvesCommand

Requirements

Namespace: Atalasoft.Imaging.ImageProcessing.Effects

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Atalasoft.dotImage (in Atalasoft.dotImage.dll)

See Also