Leadtools.ImageProcessing.Core Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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
)
C++/CLI 
public:
ConvertUnsignedToSignedCommand( 
   ConvertUnsignedToSignedCommandType type
)

Parameters

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

Example

Run the ConvertUnsignedToSignedCommand on an image. The passed image must be Unsigned image.

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

   Dim leadImage As RasterImage = codecs.Load(LeadtoolsExamples.Common.ImagesPath.Path + "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
public void ConvertUnsignedToSignedConstructorExample() 

   // Load an image 
   RasterCodecs.Startup(); 
   RasterCodecs codecs = new RasterCodecs(); 
   codecs.ThrowExceptionsOnInvalidImages = true; 
 
   RasterImage image = codecs.Load(LeadtoolsExamples.Common.ImagesPath.Path + "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