Sets the new marker settings.
#include "ltwrappr.h"
virtual L_INT LVectorBase::SetMarker(pMarker)
Pointer to a VECTORMARKER structure that contains the marker settings to set.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
The marker is used to indicate those objects within the vector handle that are selected.
For more information on available marker settings, refer to the VECTORMARKER structure.
This example will toggle the use of pen and brush color red and blue for markers.
L_INT LVectorBase__SetMarkerExample(HWND hWnd, LVectorBase *pVector)
{
UNREFERENCED_PARAMETER(hWnd);
L_INT nRet;
VECTORMARKER Marker;
// Get marker settings
nRet = pVector->GetMarker(&Marker );
if(nRet != SUCCESS)
return nRet;
// Toggle pen and brush color between red and blue
if( Marker.Pen.NewPen.LogPen.lopnColor == RGB( 0xFF, 0x00, 0x00 ) )
{
Marker.Pen.NewPen.LogPen.lopnColor = RGB( 0x00, 0x00, 0xFF );
Marker.Brush.BrushType.StandardBrush.LogBrush.lbColor = RGB( 0x00, 0x00, 0xFF );
}
else
{
Marker.Pen.NewPen.LogPen.lopnColor = RGB( 0xFF, 0x00, 0x00 );
Marker.Brush.BrushType.StandardBrush.LogBrush.lbColor = RGB( 0xFF, 0x00, 0x00 );
}
Marker.dwFlags = Marker.dwFlags | VECTOR_MARKER_PEN_COLOR | VECTOR_MARKER_BRUSH_COLOR;
// Set new marker
nRet = pVector->SetMarker (&Marker );
if(nRet != SUCCESS)
return nRet;
return SUCCESS;
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document