Leadtools.ImageProcessing.SpecialEffects Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.11
LookupTable Property
See Also  Example
Leadtools.ImageProcessing.SpecialEffects Namespace > BumpMapCommand Class : LookupTable Property




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

Syntax

Visual Basic (Declaration) 
Public Property LookupTable As Integer()
Visual Basic (Usage)Copy Code
Dim instance As BumpMapCommand
Dim value() As Integer
 
instance.LookupTable = value
 
value = instance.LookupTable
C# 
public int[] LookupTable {get; set;}
Managed Extensions for C++ 
public: __property int[] get_LookupTable();
public: __property void set_LookupTable( 
   int[] value
);
C++/CLI 
public:
property array<int> LookupTable {
   array<int> get();
   void set (intarray<value> value);
}

Return Value

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

Example

C#

C#Copy Code
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 comand As BumpMapCommand 
     comand = New BumpMapCommand 
     comand.Azimuth = 50 
     comand.Brightness = 50 
     comand.BumpImage = image 
     comand.BumpPoint = New Point(0, 0) 
     comand.Depth = 1 
     comand.DestinationPoint = New Point(0, 0) 
     comand.Elevation = 5 
     comand.Intensity = 0 
     comand.LookupTable = nLookupTable 
     comand.Tile = True 
     comand.Run(image) 
  Catch e As Exception 
     MessageBox.Show(e.Message) 
  End Try 
End Sub
C#Copy Code
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 comand = new BumpMapCommand(); 
      comand.Azimuth = 50; 
      comand.Brightness = 50; 
      comand.BumpImage = image; 
      comand.BumpPoint = new Point(0, 0); 
      comand.Depth = 1; 
      comand.DestinationPoint = new Point(0, 0); 
      comand.Elevation = 5; 
      comand.Intensity = 0; 
      comand.LookupTable = nLookupTable; 
      comand.Tile = true; 
      comand.Run(image); 
   } 
   catch(Exception exception) 
   { 
      MessageBox.Show(exception.Message); 
   } 
}

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also