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




Sets all bits to 0 in the specified image, making it a black image.

Syntax

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

Example

This example will clear an image before saving it back to disk.

Remarks

Sets all bits to 0, in the specified image. If the image has a palette, all pixels will be the color of the first palette entry.

For more information, refer to Processing an Image.

Inheritance Hierarchy

System.Object
   Leadtools.ImageProcessing.RasterCommand
      Leadtools.ImageProcessing.ClearCommand

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