Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
LBitmapWindow::SetToolType
#include "ltwrappr.h"
L_VOID LBitmapWindow::SetToolType(uToolType)
L_UINT uToolType; |
/* the tool type */ |
Sets the tool type for the class object's window.
Parameter |
Description |
|
uToolType |
The tool type to be used by the bitmap window. Possible values are: |
|
|
Value |
Meaning |
|
TOOL_USERMODE |
user tool type (default). |
|
TOOL_PANIMAGE |
pan image tool. |
|
TOOL_ZOOMRECT |
zoom rect tool. |
|
TOOL_ZOOM_ON_MOUSECLICK |
zoom in/out on mouse click. |
|
TOOL_REGION |
region tool type, the region shape is specified by LBitmapWindow::SetRegionType() function. |
|
TOOL_MAGGLASS |
magnifying glass tool. |
|
TOOL_ZOOMVIEW |
Zoom View tool. |
Returns
None
Comments
The bitmap window can automatically perform some functions. These include panning the image, zooming a user-defined rectangle to fit the window, zooming in/out on a mouse click, and creating a bitmap region (floater) based on a user-defined shape.
The default setting for an LBitmapWindow object is TOOL_USERMODE.
Required DLLs and Libraries
LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Platforms
Win32, x64.
See Also
Functions: |
|
Topics: |
Example
For an example, refer to LBitmapWindow::GetBitmapVisibleRect.