Error processing SSI file
LEADTOOLS Image Processing (Leadtools.ImageProcessing.Color assembly)

Show in webframe

TemperatureCommand Constructor(Int32)








The temperature's value.
Initializes a new TemperatureCommand class object with explicit parameters.
Syntax
public TemperatureCommand( 
   int factor
)
'Declaration
 
Public Function New( _
   ByVal factor As Integer _
)
'Usage
 
Dim factor As Integer
 
Dim instance As New TemperatureCommand(factor)
public TemperatureCommand( 
   int factor
)
function TemperatureCommand( 
   factor 
)
public:
TemperatureCommand( 
   int factor
)

Parameters

factor
The temperature's value.
Example

Run the TemperatureCommand on an image and change its hue.

Copy Code  
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.ImageProcessing.Color

   
Public Sub DefaultPropertyExample()
   Dim codecs As New RasterCodecs()
   codecs.ThrowExceptionsOnInvalidImages = True
   Dim leadImage As RasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "Master.jpg"))

   ' Prepare the command
   Dim command As TemperatureCommand = New TemperatureCommand
   command.Factor = 100
   command.Run(leadImage)
   codecs.Save(leadImage, Path.Combine(LEAD_VARS.ImagesDir, "Result.jpg"), RasterImageFormat.Jpeg, 24)

End Sub

Public NotInheritable Class LEAD_VARS
Public Const ImagesDir As String = "C:\Users\Public\Documents\LEADTOOLS Images"
End Class
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing.Color;

      
public void DefaultPropertyExample()
{
   // Load an image
   RasterCodecs codecs = new RasterCodecs();
   codecs.ThrowExceptionsOnInvalidImages = true;
   RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "ImageProcessingDemo\\Image1.jpg"));

   // Prepare the command
   TemperatureCommand command = new TemperatureCommand();
   command.Factor = 100;
   command.Run(image);
   codecs.Save(image, Path.Combine(LEAD_VARS.ImagesDir, "Result.jpg"), RasterImageFormat.Jpeg, 24);

}

static class LEAD_VARS
{
public const string ImagesDir = @"C:\Users\Public\Documents\LEADTOOLS Images";
}
Requirements

Target Platforms

See Also

Reference

TemperatureCommand Class
TemperatureCommand Members
Overload List

Error processing SSI file