TemperatureCommand Class (original) (raw)

Summary

Changes the look of the image by making it appear colder or hotter.

Syntax

class TemperatureCommand(RasterCommand): 

Example

using Leadtools; using Leadtools.Codecs; using Leadtools.ImageProcessing.Color; public void TemperatureCommandExample() { // Load an image RasterCodecs codecs = new RasterCodecs(); codecs.ThrowExceptionsOnInvalidImages = true; RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, "cannon.jpg")); TemperatureCommand command = new TemperatureCommand(1000); 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:\LEADTOOLS22\Resources\Images"; }