Header Header

Variants handling


Detailed Description

Functions for variants handling.


Functions

static gxi32 gx_imagetovariant (gxHANDLE handle, gxIMAGE *source, gxi32 varid, gxVARIANT *target)
 Embedds an image into a variant.
static gxi32 gx_imagefromvariant (gxHANDLE handle, gxIMAGE **target, gxVARIANT source)
 Loads an embedded image from a variant.


Function Documentation

static gxi32 gx_imagetovariant ( gxHANDLE  handle,
gxIMAGE source,
gxi32  varid,
gxVARIANT target 
) [static]

Embedds an image into a variant.

Parameters:
handle Handle of the module.
source Pointer to the source image.
varid The id for the created variant.
target Pointer to the initialized destination variant.
Returns:
On error false is returned and the error code/string in the GX system is set appropriately ( see gx_geterror() ).

References gx_call().

static gxi32 gx_imagefromvariant ( gxHANDLE  handle,
gxIMAGE **  target,
gxVARIANT  source 
) [static]

Loads an embedded image from a variant.

Parameters:
handle Handle of the module.
target Pointer to the initialized destination image.
source Variant with an embedded image.
Returns:
On error false is returned and the error code/string in the GX system is set appropriately ( see gx_geterror() ).

References gx_call().


Generated  for GX
(c) Adaptive Recognition