SLICEBITMAPOPTIONS

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

The SLICEBITMAPOPTIONS structure provides information for the L_SliceBitmap function, which is used to extract individual slices from radiographic scanned film.

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 roating, 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 [0x00000000] Do not cut the slice from its original image. Send the NULL value to the callback pBitmap parameter.
SLC_CUTSLICES [0x00000100] Cut the slice from its original image. Send a pointer to the created bitmap to the callback pBitmap parameter.
Help Version 21.0.2023.2.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.