| Visual Basic (Declaration) | |
|---|---|
Public Class ScrambleCommand Inherits RasterCommand Implements IRasterCommand  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
 | |
| C# | |
|---|---|
public class ScrambleCommand : RasterCommand, IRasterCommand  | |
| C++/CLI | |
|---|---|
public ref class ScrambleCommand : public RasterCommand, IRasterCommand  | |
This example will scramble the upper-left quadrant of an image using the key 123 and then save the image to disk. It will then unscrambles it and saves it disk for comparism.
| Visual Basic |  Copy Code | 
|---|---|
Public Sub ScrambleCommandExample() | |
| C# |  Copy Code | 
|---|---|
public void ScrambleCommandExample()  | |
This command is available in the Document/Medical Imaging editions toolkits.
Scrambling a rectangular area means that the pixels in that area are shuffled around into a pseudo-random location within the area.
No colors are introduced Color counts remain unchanged 
Given the same encrypt area (defined by ScrambleCommand.Rectangle) and the same ScrambleCommand.Key, setting ( ScrambleCommand.Flags = ScrambleCommandFlags.Encrypt) is the inverse of (ScrambleCommand.Flags = ScrambleCommandFlags.Decrypt).
System.Object
   Leadtools.ImageProcessing.RasterCommand
      Leadtools.ImageProcessing.ScrambleCommand
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family