SLICEBITMAPOPTIONS

Summary

The SLICEBITMAPOPTIONS structure provides information to extract individual slices from radiographic scanned film.

Syntax

typedef struct _SLICEBITMAPOPTIONS 
{ 
   L_UINT uStructSize; 
   L_UINT uMaxDeskewAngle; 
   L_INT crFill; 
   L_INT uFlags; 
} SLICEBITMAPOPTIONS, *pSLICEBITMAPOPTIONS; 

Members

uStructSize

Size of the structure. Should be set to sizeof(SLICEBITMAPOPTIONS).

uMaxDeskewAngle

Maximum angle of deskew, in hundredths of a degree. Possible values range from 0 to 1000. (The value in degrees is uMaxDeskewAngle divided by 100). This parameter is used only if the SLC_DESKEW flag is set.

crFill

Color used to fill the background following rotation. This parameter is used only if the SLC_DESKEW flag is set.

uFlags

Flags that indicate whether to deskew the sliced bitmap, which type of interpolation to use when rotating, and whether to cut the slice from the original image. You can use a bitwise OR ( | ) to specify one flag from each group.

The following flags specify whether to deskew the image:

Value Meaning
SLC_WITHOUTDESKEW [0x0001] Do not Deskew.
SLC_DESKEW [0x0000] Deskew the sliced bitmap.

The following flags indicate which type of interpolation to use when rotating:

Value Meaning
SLC_DSKW_LINEAR [0x00000000] Do not perform any interpolation methods when rotating.
SLC_DSKW_RESAMPLE [0x00000010] Perform bilinear interpolation when rotating.
SLC_DSKW_BICUBIC [0x00000020] Perform bicubic interpolation when rotating.

The following flags specify whether to cut the slice from its original image:

Value Meaning
SLC_WITHOUTCUT [0x0000] Do not cut the slice from its original image. Send the NULL value to the callback Bitmap parameter.
SLC_CUTSLICES [0x0100] Cut the slice from its original image. Send a pointer to the created bitmap to the callback Bitmap parameter.

Usage

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.