←Select platform

ConvertSignedToUnsignedCommand Constructor(ConvertSignedToUnsignedCommandType)

Summary
Initializes a new ConvertSignedToUnsignedCommand class object with explicit parameters.
Syntax
C#
VB
Objective-C
C++
Java
PublicFunctionNew( _ByValtypeAsConvertSignedToUnsignedCommandType_)
- (instancetype)initWithType:(LTConvertSignedToUnsignedCommandType)type
publicConvertSignedToUnsignedCommand(ConvertSignedToUnsignedCommandTypetype)
public:ConvertSignedToUnsignedCommand(ConvertSignedToUnsignedCommandTypetype)

Parameters

type
Flag that indicates how the shift will be done.

Example

Run theConvertSignedToUnsignedCommandon an image. The passed image must be signed image.

C#
VB
usingLeadtools;usingLeadtools.Codecs;usingLeadtools.ImageProcessing.Core;publicvoidConvertSignedToUnsignedConstructorExample(){// Load an imageRasterCodecs codecs =newRasterCodecs();codecs.ThrowExceptionsOnInvalidImages =true;RasterImage image = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,"IMAGE2.dcm"));// Prepare the commandConvertSignedToUnsignedCommand command =newConvertSignedToUnsignedCommand(ConvertSignedToUnsignedCommandType.ShiftNegativeToZero);// convert image to unsigned.command.Run(image);}staticclassLEAD_VARS{publicconststringImagesDir =@"C:\LEADTOOLS21\Resources\Images";}
ImportsLeadtoolsImportsLeadtools.CodecsImportsLeadtools.ImageProcessing.CorePublicSubConvertSignedToUnsignedConstructorExample()DimcodecsAsNewRasterCodecs()codecs.ThrowExceptionsOnInvalidImages =TrueDimleadImageAsRasterImage = codecs.Load(Path.Combine(LEAD_VARS.ImagesDir,"IMAGE2.dcm"))' Prepare the commandDimcommandAsConvertSignedToUnsignedCommand =NewConvertSignedToUnsignedCommand(ConvertSignedToUnsignedCommandType.ShiftNegativeToZero)'convert image to unsigned.command.Run(leadImage)EndSubPublicNotInheritableClassLEAD_VARSPublicConstImagesDirAsString="C:\LEADTOOLS21\Resources\Images"EndClass
Requirements

Target Platforms

Leadtools.ImageProcessing.Core Assembly
188金宝搏的网址客服|Support|Contact Us|Intellectual Property Notices
© 1991-2021LEAD Technologies, Inc.All Rights Reserved.