Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.3.5
ScrambleCommand Class
See Also  Members  
Leadtools.ImageProcessing Namespace : ScrambleCommand Class




Scrambles all or a portion of an image.

Syntax

Visual Basic (Declaration) 
Public Class ScrambleCommand 
   Inherits RasterCommand
   Implements IRasterCommand 
Visual Basic (Usage)Copy Code
Dim instance As ScrambleCommand
C# 
public class ScrambleCommand : RasterCommand, IRasterCommand  
Managed Extensions for C++ 
public __gc class ScrambleCommand : public RasterCommand, IRasterCommand  
C++/CLI 
public ref class ScrambleCommand : public RasterCommand, IRasterCommand  

Example

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.

Remarks

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).

Inheritance Hierarchy

System.Object
   Leadtools.ImageProcessing.RasterCommand
      Leadtools.ImageProcessing.ScrambleCommand

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