#include "BIDIB.H"
HANDLE CALLBACK ScaleGrayDIB( HANDLE hDIB,
short nXOrg,
short nYOrg,
short nXInpLength,
short nYInpLength,
short XScale,
short YScale,
short nMethode)
Description
Scale a monochrome device independent bitmap (DIB).
Parameters
|
HANDLE |
hDIB |
Handle to the monochrome DIB to be scaled. |
|
short |
nXOrg |
X origin of the source image. |
|
short |
nYOrg |
Y origin of the source image. |
|
short |
nXInpLength |
Image width to be scaled. |
|
short |
nYInpLength |
Image height to be scaled. |
|
short |
XScale |
Width of the result image. |
|
short |
YScale |
Height of the result image. |
|
short |
nMethode |
Scaling method. See Programming notes. |
Return values
HANDLE of scaled DIB or NULL on error .
Programming notes
This function does not delete the original DIB.
The nMethod:
BILINEAR bilinear interpolation
CUBICSPLINE cubic spline interpolation
Requirements
Header : Declared in BiDIB.h; include BiDIB.h.
Library : Use BiDIB.lib.
DLLs : BiDIB.dll.
Code example
None at present.