←Select platform

Intensity Property

Summary
Gets or sets the amount to change the resulting image intensity.
Syntax
C#
C++/CLI
Python
public int Intensity { get; set; } 
public: 
property int Intensity { 
   int get(); 
   void set (    int ); 
} 
Intensity # get and set (BumpMapCommand) 

Property Value

Amount to change the intensity. The intensity ranges from -1000 to 1000. A positive value increases (or lightens) the brightness of the resulting image. A negative value decreases (or darkens) the brightness of the resulting image.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.ImageProcessing.SpecialEffects; 
 
 
public void BumpMapCommandExample() 
{ 
   // Load an image 
   RasterImage image; 
   RasterCodecs codecs = new RasterCodecs(); 
   image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir, @"ImageProcessingDemo\Image3.cmp"), 4, CodecsLoadByteOrder.Bgr, 1, 1); 
 
   // Prepare the command 
   BumpMapCommand command = new BumpMapCommand(); 
   command.Azimuth = 5; 
   command.Brightness = 50; 
   command.BumpImage = image; 
   command.BumpPoint = new LeadPoint(0, 0); 
   command.Depth = 3; 
   command.DestinationPoint = new LeadPoint(0, 0); 
   command.Elevation = 0; 
   command.Intensity = 0; 
   command.LookupTable = null; 
   command.Tile = true; 
   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:\LEADTOOLS23\Resources\Images"; 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ImageProcessing.SpecialEffects Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.