←Select platform

DestinationPoint Property

Summary
Gets or sets the upper-left corner of the destination rectangle.
Syntax
C#
C++/CLI
Python
public LeadPoint DestinationPoint { get; set; } 
public: 
property LeadPoint DestinationPoint { 
   LeadPoint get(); 
   void set (    LeadPoint ); 
} 
DestinationPoint # get and set (BumpMapCommand) 

Property Value

The upper-left corner of the destination rectangle.

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

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 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.