API Reference Guide > Core Component API Reference > Core Component Functions Reference > Vector Functions > IG_vector_data_get |
This function returns the vector data interface in the lplpVectorData parameter for the given HIGEAR handle.
Copy Code
|
|
---|---|
AT_ERRCOUNT ACCUAPI IG_vector_data_get( HIGEAR hIGear, LPVOID* lplpVectorData ); |
Name | Type | Description |
---|---|---|
hIGear | HIGEAR | HIGEAR handle of the image. |
lplpVectorData | LPVOID* | Vector data. |
Returns the number of ImageGear errors that occurred during this function call. If there are no errors, the return value is IGE_SUCCESS.
Indexed RGB – 8bpp;
RGB – 24 bpp.
Vector
Copy Code
|
|
---|---|
/* C++ interface */ IIGVectorData* pVectorData; AT_ERRCOUNT nErrCount; nErrCount = IG_vector_data_get(hIGear, (LPVOID*)& pVectorData); if(!nErrCount && pVectorData) { /* Rotate camera to 90 degrees in XY plane */ pVectorData-> CameraRotate(3.14159/4, IG_DIR_XY); } /* C interface */ IIGVectorData* pVectorData; AT_ERRCOUNT nErrCount; nErrCount = IG_vector_data_get(hIGear, (LPVOID*)& pVectorData); if(!nErrCount && pVectorData) { /* Rotate camera to 90 degrees in XY plane */ pVectorData-> lpVtbl->CameraRotate(pVectorData, 3.14159/4, IG_DIR_XY); } |
The second parameter should be converted to the IIGVectorData pointer to become an accessible for the vector data functionality.
This function can be used only for the DWF, DXF, DWG, DGN, HPGL and HPGL/2, U3D, PDF and PS vector formats with the ImageGear CAD/Vector DWF Component, ImageGear CAD/Vector DWG, DXF Component, ImageGear CAD/Vector DGN Component and ImageGear CAD/Vector HPGL, HPGL/2 Component, ImageGear CAD/ Vector CGM Component, ImageGear U3D Component, ImageGear PDF Component attached only. See Attaching Components. |