The ZOOMVIEWPROPS structure provides information about Zoom View properties.
typedef struct tagZOOMVIEWPROPS
{
L_UINT uStructSize;
L_UINT uIndex;
RECT rcSrc;
RECT rcDst;
RECT rcView;
L_INT nZoom;
L_BOOL bForceDst;
L_BOOL bEnabled;
L_UINT32 uZoomViewBorderStyle;
COLORREF crZoomViewBorder;
L_INT nZoomViewPenStyle;
HRGN hBorderRgn;
L_UINT32 uSrcBorderStyle;
COLORREF crSrcBorder;
L_INT nSrcPenStyle;
L_BOOL bCallouts;
COLORREF crCallout;
L_INT nCalloutPenStyle;
HANNOBJECT hAnnContainer;
L_INT nSrcPenWidth;
L_INT nZoomViewPenWidth;
L_INT nCalloutPenWidth;
} ZOOMVIEWPROPS, *pZOOMVIEWPROPS;
Size of this structure in bytes, for versioning. Use sizeof(ZOOMVIEWPROPS) to calculate this value. This must be set before passing this structure to the LEADTOOLS functions.
A zero-based index of this Zoom View. This member is updated by the L_CreateZoomView and the L_DestroyZoomView functions. Set this value before calling the L_GetZoomViewProps or the L_UpdateZoomView functions.
Rectangle describing the source area of the image to be zoomed, in bitmap coordinates. The values describing this rectangle must be multiplied by 100.
Rectangle describing the location on the display of the zoomed view, in screen coordinates. By default, only the TOP_LEFT is used. The values describing this rectangle must be multiplied by 100.
Rectangle describing how the bitmap pointed to by pBitmap parameter of the L_CreateZoomView function is positioned in the device context. The coordinates in the RECT structure are relative to the device context. You must specify the RECT structure. The values describing this rectangle must be multiplied by 100.
The percentage zoom factor for the zoomed view; 100 = no zoom. Value must be >= 100.
Flag that indicates whether the zoomed view should be forced to be the size of rcDst.
Value | Meaning |
---|---|
TRUE | Force the zoomed view to the size of rcDst. |
FALSE | Allow LEADTOOLS to calculate the size based on nZoom and rcSrc. The top and left values of rcDst are used for positioning. |
Flag that indicates whether the zoomed view is enabled. If the zoomed view is not enabled, then it will not be displayed.
Value | Meaning |
---|---|
TRUE | The zoomed view is enabled. |
FALSE | The zoomed view will not be displayed. |
Value that represents the border style to be used for the Zoom View. Possible values are:
Value | Meaning |
---|---|
ZOOMVIEWBORDERSTYLE_NONE | [0x0000] Do not use a border for the Zoom View. |
ZOOMVIEWBORDERSTYLE_SIMPLE | [0x0001] Use a flat border for a rectangular, rounded rectangular and Torn out Zoom View. |
ZOOMVIEWBORDERSTYLE_3D | [0x0002] Use a 3D border for a rectangular Zoom View. |
ZOOMVIEWBORDERSTYLE_TEAROUT | [0x0004] Use a border that has a Torn out look for the Zoom View. |
ZOOMVIEWBORDERSTYLE_ROUNDED | [0x0008] Use a rounded rectangular border for the Zoom View. This can be OR-ed with ZOOMVIEWBORDERSTYLE_NONE or ZOOMVIEWBORDERSTYLE_SIMPLE. |
COLORREF value that specifies the color of the border of the Zoom View. This member can only be used when uZoomViewBorderStyle is ZOOMVIEWBORDERSTYLE_SIMPLE.
Value that represents the pen style to be used for the Zoom View border. This value is only used when uZoomViewBorderStyle is ZOOMVIEWBORDERSTYLE_SIMPLE. These are the same values as the ones used in the CreatePen Windows GDI function, like PS_SOLID or PS_DASH. For more information, refer to the Windows GDI section on MSDN.
Reserved for future use. Pass NULL.
Value that represents the border style to be used on the source rectangle. Possible values are:
Value | Meaning |
---|---|
SOURCEBORDERSTYLE_SIMPLE | [0x0000] Use a flat border on the source rectangle. |
SOURCEBORDERSTYLE_3D | [0x0001] Use a 3D border on the source rectangle. |
COLORREF value that specifies the color of the border on the source rectangle. This value is only used when uSrcBorderStyle is SOURCEBORDERSTYLE_SIMPLE.
Value that represents the pen style to be used on the source rectangle for the Zoom View. This value is only used when uSrcBorderStyle is SOURCEBORDERSTYLE_SIMPLE.
These are the same values as the ones used in the CreatePen Windows GDI function, such as PS_SOLID or PS_DASH. For more information, refer to the Windows GDI section on MSDN.
Flag that indicates whether to enable callout lines.
Value | Meaning |
---|---|
TRUE | Enable callout lines for the zoomed view. |
FALSE | Disable callout lines for the zoomed view. |
COLORREF value that specifies the color of the callout lines. This member is ignored when bCallouts is set to FALSE.
Value that represents the pen style to be used for connected source and destination rectangles for the Zoom View. This value is ignored when bCallouts is FALSE.
These are the same values as the ones used in the CreatePen Windows GDI function, such as PS_SOLID or PS_DASH. For more information, refer to the Windows GDI section on MSDN.
Handle to the root container object of an annotation object to be displayed. If NULL, no annotation will be displayed in the zoom view.
Value that represents the pen width in pixels, to be used on the source rectangle for the Zoom View. This value is only used when uSrcBorderStyle is SOURCEBORDERSTYLE_SIMPLE.These are the same values as the ones used in the CreatePen Windows GDI function. For more information, refer to the Windows GDI section on MSDN.
Value that represents the pen width in pixels, to be used for the Zoom View border. This value is only used when uZoomViewBorderStyle is ZOOMVIEWBORDERSTYLE_SIMPLE.These are the same values as the ones used in the CreatePen Windows GDI function. For more information, refer to the Windows GDI section on MSDN.
Value that represents the pen width in pixels, to be used for connected source and destination rectangles for the Zoom View. This value is ignored when bCallouts is FLASE. These are the same values as the ones used in the CreatePen Windows GDI function. For more information, refer to the Windows GDI section on MSDN.
pZOOMVIEWPROPS is a pointer to an ZOOMVIEWPROPS structure. Where the function parameter type is pZOOMVIEWPROPS, you can declare a ZOOMVIEWPROPS variable, update the structure's fields, and pass the variable's address in the parameter. Declaring a pZOOMVIEWPROPS variable is necessary only if your program requires a pointer.
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