ConvertSignedToUnsigned method (Main Control)

C++ Builder example

Delphi example

 

Builder Syntax

int ConvertSignedToUnsigned(unsigned uShift);

Delphi Syntax

Function ConvertSignedToUnsigned(uShift: Cardinal): Integer;

Overview

Refer to Examining and Altering Bitmaps

Remarks

Converts a signed bitmap to unsigned.

To determine whether a bitmap is signed, check the IsSigned property. LEADTOOLS loads signed files only if the LoadSigned property is TRUE. If the LoadSigned property is FALSE, the signed images are automatically converted to signed during loading, by setting all negative pixels to 0.

This method supports 12 and 16-bit grayscale images and 48 and 64-bit color images. Support for 12 and 16-bit grayscale images and 48 and 64-bit color images is available only in the Document/Medical toolkits.

This method supports signed data images.

See Also

Elements:

IsSigned property, LoadSigned property

Topics:

Raster Images: Doing Color Expansion or Reduction