Changes from Version 8.0 to Version 9.0

Version 9.0 of the LEADTOOLS API has changed from version 8.0 as follows:

image\sqrblit.gif LTKRN90N.DLL and LTKRN90W.DLL have each been split in two. The new DLLs are LTKRN90N.DLL and LTDIS90N.DLL, and LTKRN90W.DLL and LTDIS90W.DLL. All programs that display images will have to use the appropriate LTDIS90 .DLL file in their projects.

image\sqrblit.gif Reusable dialogs for the most common LEADTOOLS imaging functions are now provided.

- FileOpen and FileSave dialogs have been extended to contain LEADTOOLS specific options.

- A Thumbnail Preview option for FileOpen dialog allows the end user to preview images before loading them.

- A Thumbnail Preview option for the image processing dialogs allows the end user to preview the proposed change to the image, before actually affecting the original image.

- An optional Help Button callback function lets you provide custom help information for each dialog.

- A user interface control for the dialogs is provided through flags passed to each dialog function.

- An option to have the Imaging Common Dialog process the image automatically is provided.

image\sqrblit.gif Now you have more control over the loading and caching of the file filter DLLs.

image\sqrblit.gif Now you save more than one custom TIFF tag.

image\sqrblit.gif Now you can load only a specified portion of an image file.

image\sqrblit.gif [Express editions] Support for ISIS scanning has been added.

image\sqrblit.gif [Express editions only] New functions allow you to hyperlink annotations. Annotations may be hyperlinked to run a program, access a Web page, or send a user defined message.

image\sqrblit.gif [Express editions only] New annotation functions allow you to add security to annotation objects.

image\sqrblit.gif [Express editions only] New annotation functions allow you to create hilite objects.

image\sqrblit.gif [Express editions only] New annotation functions allow you to set bitmap stamps to be transparent.

image\sqrblit.gif [Express editions only] Support for 12 and 16-bit grayscale images is included.

image\sqrblit.gif [Express editions only] New window leveling functions for 12 and 16-bit grayscale allow you to map grayscale intensities by specifying the bit range and/or a user defined color map. It is valid only for 12 and 16-bit grayscale images.

image\sqrblit.gif [Express editions only] Support for annotations in a TIFF tag is included.

image\sqrblit.gif [Express editions only] The automated mode for annotation lets you move individual points in a polygon or a polyline.

Changed functions

The following functions have changed from the previous version of LEADTOOLS:

L_AnnLoad (will load annotations from LEAD files or TIF files)

L_AnnRealize ( redact object background is now saved in the object)

L_AnnSaveMemory (new format options)

L_SetTag (added tag option)

L_ColorResBitmap (new flag option)

L_LoadBitmap (now supports 12 and 16-bit grayscale images Express editions only)

L_LoadBitmapList (now supports 12 and 16-bit grayscale images Express editions only)

L_LoadBitmapMemory (now supports 12 and 16-bit grayscale images Express editions only)

L_LoadFile (now supports 12 and 16-bit grayscale images Express editions only)

L_LoadFileOffset (now supports 12 and 16-bit grayscale images Express editions only)

L_LoadFileTile (FlashPix Module) (supports all formats, not just FlashPix; now supports 12 and 16-bit grayscale images Express editions only)

L_LoadMemory (now supports 12 and 16-bit grayscale images Express editions only)

L_InitBitmap (now supports 12 and 16-bit grayscale images Express editions only)

L_ConvertBuffer (now supports 12 and 16-bit grayscale images Express editions only)

L_CreateBitmap (now supports 12 and 16-bit grayscale images Express editions only)

L_GetBitmapRow (now supports 12 and 16-bit grayscale images Express editions only)

L_GetBitmapRowCol (now supports 12 and 16-bit grayscale images Express editions only)

L_SaveBitmap (now supports 12 and 16-bit grayscale images Express editions only)

L_SaveBitmapMemory (now supports 12 and 16-bit grayscale images Express editions only)

L_SaveFile (now supports 12 and 16-bit grayscale images Express editions only)

L_StartFeedLoad (now supports 12 and 16-bit grayscale images Express editions only)

Relocated functions:

The following functions have been moved to ltdis.h:

L_AppendPlayback

L_BitmapHasRgn

L_CancelPlaybackWait

L_ChangeFromDDB

L_ChangeToDDB

L_ClearPlaybackUpdateRect

L_ClipboardReady

L_ConvertColorSpace

L_ConvertFromDDB

L_ConvertToDDB

L_CopyFromClipboard

L_CopyToClipboard

L_CopyToClipboardExt

L_CreatePaintPalette

L_CreateMaskFromBitmapRgn

L_CreatePlayback

L_DestroyPlayback

L_FrameBitmapRgn

L_FreeBitmapRgn

L_GetBitmapRgnArea

L_GetBitmapRgnBounds

L_GetBitmapRgnHandle

L_GetDisplayMode

L_GetPaintContrast

L_GetPaintGamma

L_GetPaintIntensity

L_GetPlaybackDelay

L_GetPlaybackIndex

L_GetPlaybackState

L_GetPlaybackUpdateRect

L_HalfToneBitmap

L_HalfToneBitmapExt

L_IsPtInBitmapRgn

L_OffsetBitmapRgn

L_PaintDC

L_PaintDCBuffer

L_PaintRgnDC

L_PaintRgnDCBuffer

L_PrintBitmap

L_PrintBitmapExt

L_PrintBitmapFast

L_ProcessPlayback

L_ScreenCaptureBitmap

L_SetBitmapRgnColor

L_SetBitmapRgnEllipse

L_SetBitmapRgnFromMask

L_SetBitmapRgnHandle

L_SetBitmapRgnPolygon

L_SetBitmapRgnRect

L_SetBitmapRgnRoundRect

L_SetDisplayMode

L_SetPaintContrast

L_SetPaintGamma

L_SetPaintIntensity

L_SetPlaybackIndex

L_UnderlayBitmap

L_ValidatePlaybackLines

Changed structures

The following structures have been changed to support new features:

image\sqrblit.gif BITMAPHANDLE has new fields for window leveling.

New error messages

The following constants for error messages have been added:

New constant

ERROR_FPX_FILE_CREATE_ERROR

FlashPix error

ERROR_FPX_FILE_NOT_OPEN_ERROR

FlashPix error

ERROR_FPX_USER_ABORT

FlashPix error

ERROR_FPX_OLE_FILE_ERROR

FlashPix error

ERROR_FPXEXTENSIONS_LOCKED

‘FlashPix extension module’ is needed to use this function

ERROR_ANN_LOCKED

Annotation object is locked

ERROR_ISIS_NOCURSCANNER

No ISIS Scanner selected

ERROR_ISIS_SCANDRIVER_NOT_LOADED

ISIS Scanner driver failed to load

ERROR_ISIS_CANCEL

ISIS operation canceled by user

ERROR_ISIS_BAD_TAG_OR_VALUE

Bad ISIS Tag or Bad Tag Value

ERROR_ISIS_NOT_READY

ISIS Scanner not ready

ERROR_ISIS_NO_PAGE

No page in the ISIS Scanner

ERROR_ISIS_JAM

ISIS Scanner Jam error

ERROR_ISIS_SCANNER_ERROR

ISIS Scanner driver error

ERROR_ISIS_BUSY

ISIS Scanner is busy

ERROR_ISIS_FILE_ERROR

ISIS File driver error

ERROR_ISIS_NETWORK_ERROR

ISIS Network error

ERROR_ISIS_NOT_INSTALLED

ISIS is not installed

ERROR_DLG_CANCELED

Imaging Common Dialog canceled by user

ERROR_DLG_FAILED

Imaging Common Dialog Error - error during creation of dialog

 

The rest of this topic lists the new functions in version 9.0.

Imaging Common Dialog:

L_DlgColorRes

L_DlgFileOpen

L_DlgFileSave

L_DlgGetAngle

L_DlgGetChange

L_DlgGetEmboss

L_DlgGetFilter

L_DlgGetGamma

L_DlgGetNoise

L_DlgGetRange

L_DlgGetSize

L_DlgWindowLevel

ISIS support (Express editions):

L_ISISAcquire

L_ISISAcquireMulti

L_ISISGetTagLong

L_ISISGetTagShort

L_IsISISAvailable

L_ISISLoadDriver

L_ISISSelect

L_ISISSetTagLong

L_ISISSetTagShort

L_ISISUnloadDriver

Annotation hyperlinks (Express editions only):

L_AnnGetHyperlink

L_AnnGetHyperlinkLen

L_AnnGetHyperlinkMenuEnable

L_AnnSetHyperlink

L_AnnSetHyperlinkMenuEnable

Annotation security (Express editions only):

L_AnnGetLocked

L_AnnLock

L_AnnShowLockedIcon

L_AnnUnlock

Annotation display (Express editions only):

L_AnnGetROP2

L_AnnGetTransparent

L_AnnSetROP2

L_AnnSetTransparent

Saving annotations (Express editions only):

L_AnnSaveTag

Restoring redact objects (Express editions only):

L_AnnUnrealize

Window leveling (Medical Express only):

L_GetMinMaxBits

L_GetMinMaxVal

L_WindowLevel

L_WindowLevelBitmap

Loading input/output file filters:

L_IgnoreFilters

L_PreLoadFilters

Miscellaneous:

L_ClearNegativePixels

L_ConvertBufferExt