BumpMapCommand Class (original) (raw)

Summary

Adds a three-dimensional texture pattern created by applying the bump image to the affected image. This command is available in the Imaging Pro and above toolkits.

Syntax

class BumpMapCommand(RasterCommand): 

Example

Run the BumpMapCommand on an image.

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:\LEADTOOLS22\Resources\Images"; }