ImageGear for C and C++ on Windows v19.4 - Updated
IG_FIP_co_obj_create
API Reference Guide > FreqIP Component API Reference > FreqIP Component Functions Reference > Complex Object Functions > IG_FIP_co_obj_create

This function creates a new object based on the given hIGearRe and hIGearIm.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_FIP_co_obj_create(
        HIGCOMPLEXOBJ* lphIGComplexObj, 
        HIGEAR hIGearRe,
        HIGEAR hIGearIm
);

Arguments:

Name Type Description
lphIGComplexObj HIGCOMPLEXOBJ* Handle to return the newly created object.
hIGearRe HIGEAR Handle pointing to an image to be used as the real part of the newly created object.
hIGearIm HIGEAR Handle pointing to an image to be used as the imaginary part of the newly created object.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

Grayscale - 8, 16, 32 bpp.

Remarks:

The dimension of the newly created object is determined by the width and height of hIGearRe and hIGearIm. If hIGearIm is not NULL, this function requires hIGearRe and hIGearIm to have the same width and height; otherwise, the width and height of hIGearRe is used.

Data from hIGearRe and hIGearIm is then used respectively to populate the real and imaginary buffer in the newly created object.

hIGearRe and hIGearIm should only have one channel with bit depth being 8, 16, or 32.