#include "ltwrappr.h"
virtual L_INT LAnnAutomation::GetPointOptions(pPointOptions, uStructSize)
pANNPOINTOPTIONS pPointOptions; |
pointer to an ANNPOINTOPTIONS structure that specifies various point options |
L_UINT uStructSize; |
Size in bytes, of the structure pointed to by pPointOptions, for versioning. Use sizeof(ANNPOINTOPTIONS). |
Gets the options for the specified Automation annotation object.
Parameter |
Description |
pPointOptions |
Pointer to an ANNPOINTOPTIONS structure to be updated with the various point appearance options for the specified annotation object. |
uStructSize |
Size in bytes, of the structure pointed to by pPointOptions, for versioning. Use sizeof(ANNPOINTOPTIONS). |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Use this function to get the point appearance options of an annotation automation object. To use this function, declare a variable a type ANNPOINTOPTIONS, and pass the address of this variable as the second argument. For more information, see the documentation for the structure ANNPOINTOPTIONS.
Required DLLs and Libraries
LTANN For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64.
Functions: |
LAnnPoint::GetPredefinedBitmap, LAnnEncrypt::GetEncryptOptions, LAnnEncrypt::SetEncryptOptions, Class Members |
Topics: |
|
|
|
|
// This example toggles the appearance of a point annotation object // The appearance toggles between bitmap and circleL_INT LAnnAutomation_GetPointOptionsExample(LAnnAutomation *pLAutomation){L_INT nRet;HMETAFILE hMetafile1=0;HMETAFILE hMetafile2=0;ANNPOINTOPTIONS PointOptions;L_UINT uObjectType;UNREFERENCED_PARAMETER(hMetafile1);UNREFERENCED_PARAMETER(hMetafile2);uObjectType = pLAutomation->GetType();if (uObjectType != ANNOBJECT_AUTOMATION){MessageBox(NULL, TEXT("This object is not a point object."), TEXT("Error"), MB_OK);return FAILURE;}memset(&PointOptions, 0, sizeof(ANNPOINTOPTIONS));PointOptions.uStructSize = sizeof(ANNPOINTOPTIONS);PointOptions.uFlags = ANNPOINT_ALL;nRet = pLAutomation->GetPointOptions(&PointOptions, sizeof(PointOptions));if(nRet != SUCCESS)return nRet;if (PointOptions.bPointUseBitmap){// Change point appearance to a circlePointOptions.uStructSize = sizeof(ANNPOINTOPTIONS);PointOptions.bPointUseBitmap = FALSE;PointOptions.bPointFixedSize = FALSE;PointOptions.bPointTransparentFill = FALSE;PointOptions.crPointBorderColor = RGB(0,0,0);PointOptions.crPointFillColor = RGB(255, 255, 0);PointOptions.nPointRadius = 12;PointOptions.nReserved = 0;PointOptions.uFlags = ANNPOINT_USE_BITMAP |ANNPOINT_RADIUS |ANNPOINT_BORDER_COLOR |ANNPOINT_FILL_COLOR |ANNPOINT_TRANSPARENT_FILL |ANNPOINT_FIXED_SIZE;}else{// Change point appearance to a bitmapPointOptions.uStructSize = sizeof(ANNPOINTOPTIONS);PointOptions.bPointUseBitmap = TRUE;PointOptions.bPointBitmapTransparent = TRUE;PointOptions.crPointBitmapTransparentColor = RGB(255,255,255);PointOptions.nReserved = 0;}nRet = pLAutomation->SetPointOptions(&PointOptions, 0);if(nRet != SUCCESS)return nRet;return SUCCESS;}
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
