Leadtools.ImageProcessing.Core Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.10
ConvertUnsignedToSignedCommand Constructor(ConvertUnsignedToSignedCommandType)
See Also  Example
Leadtools.ImageProcessing.Core Namespace > ConvertUnsignedToSignedCommand Class > ConvertUnsignedToSignedCommand Constructor : ConvertUnsignedToSignedCommand Constructor(ConvertUnsignedToSignedCommandType)




type
Flag that indicates how to process bits outside the low bit to high bit range.
Initializes a new ConvertUnsignedToSignedCommand class object with explicit parameters.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal type As ConvertUnsignedToSignedCommandType _
)
Visual Basic (Usage)Copy Code
Dim type As ConvertUnsignedToSignedCommandType
 
Dim instance As ConvertUnsignedToSignedCommand(type)
C# 
public ConvertUnsignedToSignedCommand( 
   ConvertUnsignedToSignedCommandType type
)
Managed Extensions for C++ 
public: ConvertUnsignedToSignedCommand( 
   ConvertUnsignedToSignedCommandType type
)
C++/CLI 
public:
ConvertUnsignedToSignedCommand( 
   ConvertUnsignedToSignedCommandType type
)

Parameters

type
Flag that indicates how to process bits outside the low bit to high bit range.

Example

Visual BasicCopy Code
ImageProcessing.Core.ConvertUnsignedToSignedCommand.ConvertUnsignedToSignedConstructor
   Public Sub ConvertUnsignedToSignedConstructorExample()
      RasterCodecs.Startup()
      Dim codecs As New RasterCodecs()
      codecs.ThrowExceptionsOnInvalidImages = True

      Dim leadImage As RasterImage = codecs.Load("C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\Master.jpg")

      ' Prepare the command
      Dim command As ConvertUnsignedToSignedCommand = New ConvertUnsignedToSignedCommand(ConvertUnsignedToSignedCommandType.ProcessRangeOnly)
      'convert image to signed.
      command.Run(leadImage)

      RasterCodecs.Shutdown()
   End Sub
C#Copy Code
ImageProcessing.Core.ConvertUnsignedToSignedCommand.ConvertUnsignedToSignedConstructor 
      public void ConvertUnsignedToSignedConstructorExample() 
      { 
         // Load an image 
         RasterCodecs.Startup(); 
         RasterCodecs codecs = new RasterCodecs(); 
         codecs.ThrowExceptionsOnInvalidImages = true; 
 
         RasterImage image = codecs.Load(@"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\Master.jpg"); 
 
         // Prepare the command 
         ConvertUnsignedToSignedCommand command = new ConvertUnsignedToSignedCommand(ConvertUnsignedToSignedCommandType.ProcessRangeOnly); 
         //convert image to signed. 
         command.Run(image); 
 
         RasterCodecs.Shutdown(); 
      }

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