LEADTOOLS Image Processing (Leadtools.ImageProcessing.SpecialEffects assembly)
LEAD Technologies, Inc

LookupTable Property

Example 





Table of 256 integers containing lookup values that re-map bump image data. .NET support WinRT support
Syntax
public int[] LookupTable {get; set;}
'Declaration
 
Public Property LookupTable As Integer()
'Usage
 
Dim instance As BumpMapCommand
Dim value() As Integer
 
instance.LookupTable = value
 
value = instance.LookupTable
public int[] LookupTable {get; set;}
 get_LookupTable();
set_LookupTable(value);
public:
property array<int>^ LookupTable {
   array<int>^ get();
   void set (    array<int>^ value);
}

Property Value

Table of 256 integers containing lookup values that re-map bump image data.
Example

C#

 
Imports Leadtools
Imports Leadtools.ImageProcessing.Effects
             
' Run the BumpMap command on an image.
Private Sub BumpMapTest(ByVal image As RasterImage)
  Try
     Dim nLookupTable() As Integer
     ReDim nLookupTable(255)
     Dim index As Integer = 0
     For index = 0 To 255
        nLookupTable(index) = index
     Next index
            
     Dim command As BumpMapCommand
     command = New BumpMapCommand
     command.Azimuth = 50
     command.Brightness = 50
     command.BumpImage = image
     command.BumpPoint = New Point(0, 0)
     command.Depth = 1
     command.DestinationPoint = New Point(0, 0)
     command.Elevation = 5
     command.Intensity = 0
     command.LookupTable = nLookupTable
     command.Tile = True
     command.Run(image)
  Catch e As Exception
     MessageBox.Show(e.Message)
  End Try
End Sub
using Leadtools;
using Leadtools.ImageProcessing.Effects;
             
// Run the BumpMap command on an image.
private void BumpMapTest(RasterImage image)
{
   try
   {
      int [] nLookupTable = new int[256];
      for(int index = 0; index<256; index++)
      {
         nLookupTable[index] = index;
      }
      
      BumpMapCommand command = new BumpMapCommand();
      command.Azimuth = 50;
      command.Brightness = 50;
      command.BumpImage = image;
      command.BumpPoint = new Point(0, 0);
      command.Depth = 1;
      command.DestinationPoint = new Point(0, 0);
      command.Elevation = 5;
      command.Intensity = 0;
      command.LookupTable = nLookupTable;
      command.Tile = true;
      command.Run(image);
   }
   catch(Exception exception)
   {
      MessageBox.Show(exception.Message);
   }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

BumpMapCommand Class
BumpMapCommand Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.