ImageGear for C and C++ on Windows v19.10 - Updated
IG_vect_drwng_get_actual_graphics
API Reference Guide > Vector Component API Reference > Vector Component Functions Reference > Drawing Functions > IG_vect_drwng_get_actual_graphics

This function retrieves the type of graphics that will be used for displaying the view content.

Declaration:

 
Copy Code
AT_ERRCOUNT ACCUAPI IG_vect_drwng_get_actual_graphics(
   HIG_VECT_DRWNG hDrwng,
   AT_UINT hContext,
   enumIGVectGraphics* lpGraphics
);

Arguments:

Name Type Description
hDrwng HIG_VECT_DRWNG Handle to the drawing.
hContext AT_UINT Device context which will be used for displaying. In case of Windows OS, this is an HDC.
lpGraphics enumIGVectGraphics* Pointer to a variable which will receive the graphics type. See Remarks.

Return Value:

Returns 0 if successful. Otherwise, returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

This function does not process image pixels.

Sample:

Vector

Remarks:

Currently supported graphics types are: OpenGL and Direct3D.

If the graphics type has been set to IG_VECT_GRAPH_AUTO (see IG_vect_drwng_set_graphics), then the actual graphics will be set automatically to OpenGL or Direct3D, depending on the capabilities of the operation system.