ImageMan DLL Suite Version 8Submit feedback on this topic   

ImgFilterLow

int IMAPI ImgFilterLow ( HANDLE hImage, LPKERNEL lpKernel, int iChannel )

The function applies the supplied convolution filter to an image.

 

Parameter

Type

Description

hImage

HANDLE

Identifies the image to apply the filter to.

lpKernel

LPKERNEL

Is a pointer to a kernel structure containing the filter data that will be applied to the image.

IChannel

int

specifies which color channels the filter should be performed on.

 

 

Return Value

This function returns IMG_OK if successful. Otherwise it returns an ImageMan error.

 

In the current release of ImageMan the iChannel parameter is ignored. Future releases will support filtering each channel individually.

Comments

This function operates only on 24bit color images.

 

The ImageMan header file contains the typedef for a kernel object. Following is the kernel structure for easy reference:

 

typedef struct FILTERKERNEL

{

int iScale ;

int iOffset ;

int iWidth ;

int iHeight ;

int lpFilter {} ;

} FILTERKERNEL ;

typedef FILTERKERNEL * LPKERNEL ;

 

 


© 1995-2004 Data Techniques, Inc. All rights reserved.