Functions | |
void | AboutBox () |
Displays the About box of the Common Vision Display Control. | |
boolean | AddLabel (BSTR Text, boolean CanDrag, long Color, long ID, long x, long y) |
Generates a label and displays it in the the display object. More... | |
boolean | AddOverlayObject (BSTR ObjectName, BSTR Text, boolean CanDrag, boolean XorOnly, long Color, long HighLightColor, boolean Filled, long ID, long *Vertices, long *ObjectData) |
Generates an overlay object from a plug-in. More... | |
boolean | AddOverlayObjectNET (BSTR ObjectName, BSTR Text, boolean CanDrag, boolean XorOnly, long Color, long HighLightColor, boolean Filled, long ID, __int3264 PixelList, void *ObjectData) |
Generates an overlay object from a plug-in. More... | |
boolean | AddOverlayObjectNET2 (BSTR ObjectName, BSTR Text, boolean CanDrag, boolean XorOnly, long Color, long HighLightColor, boolean Filled, long ID, __int64 PixelList, __int64 ObjectData) |
Instantiates an overlay plugin object and adds it to this display. More... | |
boolean | AddUserObject (BSTR Text, boolean CanDrag, boolean XorOnly, long NumVertices, long ID, __int3264 Vertices) |
Generates a graphic overlay object. More... | |
boolean | AddUserObjectNET (BSTR Text, boolean CanDrag, boolean XorOnly, long ID, __int3264 PixelList) |
Generates a graphic overlay object. More... | |
boolean | ClientToImage (long ClientX, long ClientY, long *ImageX, long *ImageY) |
Converts window coordinates to image coordinates. More... | |
boolean | CopyImageToClipboard () |
Copies the active AOI (refer to GetSelectedArea/ SetSelectedArea) from the display object to the Windows clipboard. More... | |
boolean | GetDisplayZoom (long *CenterX, long *CenterY, long *ZoomFactor) |
Ascertain the current zoom factor and pixel position of the center of the window. More... | |
boolean | GetDisplayZoomEx (long *CenterX, long *CenterY, double *ZoomFactor) |
Ascertain the current zoom factor and pixel position of the center of the window. More... | |
boolean | GetLabelPosition (long ID, long *x, long *y) |
Determines the position of the selected label. More... | |
boolean | GetOverlayObjectPosition (long ID, long Index, long *x, long *y) |
Determines the position of a vertex of the specified overlay object. More... | |
double | GetPanoramaZoomFactor () |
Returns the zoom factor used in panorama mode. More... | |
boolean | GetSelectedArea (double *x0, double *y0, double *x1, double *y1, double *x2, double *y2) |
Determines the three corner points of a marked rectangle or parallelogram in the display object. More... | |
boolean | GetUserObjectPosition (long ID, long Index, long *x, long *y) |
Determines the position of a vertex of the specified user object. More... | |
boolean | HasLabel (long ID) |
Checks if a label of a given ID exits. More... | |
boolean | HasOverlayObject (long ID) |
Checks if a overlay object of a given ID exists. More... | |
boolean | HasUserObject (long ID) |
Checks if a user object of a given ID exists. More... | |
boolean | HighLightLabel (long ID, boolean Highlight) |
Enables or disables the highlighted display of a certain label. More... | |
boolean | HighLightOverlayObject (long ID, boolean Highlight) |
Turns the highlighting of a certain overlay object on or off. More... | |
boolean | ImageToClient (long ImageX, long ImageY, long *ClientX, long *ClientY) |
Converts image coordinates to coordinates based on the display window. More... | |
boolean | IsOverlayObjectAvailable (BSTR ObjectName, long *ObjectType, long *NumVertices, long *NumVerticesUsed) |
Ascertain whether an overlay object is available or not. More... | |
void | Lock () |
Blocks all other instances of the Display Control in order to synchronize calls to the user interface. More... | |
boolean | MakeOverlayImage () |
Transforms the active image in the display object inot an overlay-capable image format. More... | |
boolean | MoveOverlayObject (long ID, long x, long y, boolean MoveAbsolute) |
Moves an overlay object to the absolute x,y position or by x,y pixels. More... | |
void | Refresh () |
Forces the image to be redrawn. More... | |
boolean | RemoveAllLabels () |
Deletes all labels from the display object. More... | |
boolean | RemoveAllOverlayObjects () |
Removes all overlay objects from the display object. More... | |
boolean | RemoveAllOverlays () |
Removes all overlays, including labels, overlay Plug-Ins and user-defined objects from the display object. More... | |
boolean | RemoveAllUserObjects () |
Deletes all user-defined graphic objects from the display object. More... | |
boolean | RemoveLabel (long ID) |
Deletes a selected label from the display object. More... | |
boolean | RemoveOverlayObject (long ID) |
Removes a certain overlay object from the display object. More... | |
boolean | RemoveUserObject (long ID) |
Removes a selected user-defined object from the display object. More... | |
boolean | SaveImage (BSTR Filename) |
Saves an image to a file using the given file name. This method has the same effect as a change to the Filename property. The CVCError event is triggered if an error occurs. More... | |
boolean | SaveImageByDialog () |
Saves an image to a file using the options of a dialog box. More... | |
boolean | SaveWindowToBitmap (__int3264 hWnd, BSTR Filename) |
Saves the contents of a window to a bitmap file. More... | |
boolean | SetDisplayZoom (long CenterX, long CenterY, long ZoomFactor) |
Sets the zoom factor of the display on screen. More... | |
boolean | SetDisplayZoomEx (long CenterX, long CenterY, double ZoomFactor) |
Sets the zoom factor of the display on screen. More... | |
boolean | SetSelectedArea (double x0, double y0, double x1, double y1, double x2, double y2) |
Sets the three corner points of a marked rectangle or parallelogram in the display object. More... | |
boolean | SubAreaSelected () |
Checks whether an image is selected. More... | |
void | Unlock () |
Release the lock on all other instances of the Display Control. More... | |
boolean AddLabel | ( | BSTR | Text, |
boolean | CanDrag, | ||
long | Color, | ||
long | ID, | ||
long | x, | ||
long | y | ||
) |
Generates a label and displays it in the the display object.
[in] | Text | Any string to be shown in the label. |
[in] | CanDrag | Controls whether the label can be dragged. TRUE specifies that the label can be dragged, otherwise FALSE ; |
[in] | Color | Color of the label. For example: to get thre red color enter the value RGC(255,0,0). |
[in] | ID | Unique ID identifying the label. |
[in] | x | X coordinate of the label. |
[in] | y | Y coordinate of the label. |
TRUE
if was successful, FALSE
otherwise. boolean AddOverlayObject | ( | BSTR | ObjectName, |
BSTR | Text, | ||
boolean | CanDrag, | ||
boolean | XorOnly, | ||
long | Color, | ||
long | HighLightColor, | ||
boolean | Filled, | ||
long | ID, | ||
long * | Vertices, | ||
long * | ObjectData | ||
) |
Generates an overlay object from a plug-in.
The name of the overlay object must match a name of an available overlay object (see AOOxxx properties). An overlay object can be described by a sequence of points (vertices). A line contains two vertices, a triangle three, a circle also two (a centerpoint and a point located on the perimeter). The position of the vertices is passed as image coordinates.
[in] | ObjectName | Specifies the name of the overlay object. This name must be in the list of available overlay objects. |
[in] | Text | Any user-defined string that is displayed in the status bar when the mouse cursor is located over the user object. |
[in] | CanDrag | Determines whether the user object can be dragged. TRUE specifies that the object can be dragged, FALSE otherwise. |
[in] | XorOnly | Defines the mode in which the graphic element is drawn. TRUE means that the overlay drawn is XORed to the image information, FALSE otherwise means that the used mode is CopyPen. During the dragging process the XorOnly mode is always used. |
[in] | Color | Normal character color. |
[in] | HighLightColor | Character color when highlighted. |
[in] | Filled | Defines whether the object is filled or not. Only overlay objects which have an area can be filled. TRUE specifies that the object is filled, otherwise FALSE means that the object is drawn as a border only. |
[in] | ID | Unique ID identifying the object. |
[in] | Vertices | POINT-type listing that has a length of AOONumVertices and contains the positions of vertices. POINT is a structure of two Long values standing for the x and y coordinate of a point. |
[in] | ObjectData | Can be used to pass additional information to the overlay plug-in. Whether this parameter is used or not depends on the plug-in. |
TRUE
if was successful, FALSE
otherwise. boolean AddOverlayObjectNET | ( | BSTR | ObjectName, |
BSTR | Text, | ||
boolean | CanDrag, | ||
boolean | XorOnly, | ||
long | Color, | ||
long | HighLightColor, | ||
boolean | Filled, | ||
long | ID, | ||
__int3264 | PixelList, | ||
void * | ObjectData | ||
) |
Generates an overlay object from a plug-in.
The name of the overlay object must match a name of an available overlay object (see AOOxxx properties). An overlay object can be described by a sequence of points (vertices). A line contains two vertices, a triangle three, a circle also two (a centerpoint and a point located on the perimeter). The position of the vertices is passed as image coordinates in form of a pixel list.
[in] | ObjectName | Specifies the name of the overlay object. This name must be in the list of available overlay objects. |
[in] | Text | Any user-defined string that is displayed in the status bar when the mouse cursor is located over the user object. |
[in] | CanDrag | Determines whether the user object can be dragged. TRUE specifies that the object can be dragged, FALSE otherwise. |
[in] | XorOnly | Defines the mode in which the graphic element is drawn. TRUE means that the overlay drawn is XORed to the image information, FALSE otherwise means that the used mode is CopyPen. During the dragging process the XorOnly mode is always used. |
[in] | Color | Normal character color. |
[in] | HighLightColor | Character color when highlighted. |
[in] | Filled | Defines whether the object is filled or not. Only overlay objects which have an area can be filled. TRUE specifies that the object is filled, otherwise FALSE means that the object is drawn as a border only. |
[in] | ID | Unique ID identifying the object. |
[in] | PixelList | CVB PixelList type listing that has a length of AOONumVertices and contains the positions of vertices. The PixelList needs to have a Dimension of >= 2 having X and Y stored as the first two elements. |
[in] | ObjectData | Can be used to pass additional information to the overlay plug-in. Whether this parameter is used or not depends on the plug-in. iCVcPlugIn.DLL contains a list of structures for all currently supported Plug-Ins. Use the ToIntPtr() function of one of this structures to retrieve a pointer to it's data and pass this pointer to this method. |
TRUE
if was successful, FALSE
otherwise. boolean AddOverlayObjectNET2 | ( | BSTR | ObjectName, |
BSTR | Text, | ||
boolean | CanDrag, | ||
boolean | XorOnly, | ||
long | Color, | ||
long | HighLightColor, | ||
boolean | Filled, | ||
long | ID, | ||
__int64 | PixelList, | ||
__int64 | ObjectData | ||
) |
Instantiates an overlay plugin object and adds it to this display.
For a general discussion of overlay plugins and a list of available overlay plugins please refer to the Image Manager documentation. Available overlay objects may also be enumerated with the Display control's AOOCount, AOOIndex, AOOName, AOONumVertices and AOONumVerticesUsed properties.
[in] | ObjectName | Name of the type of overlay plugin to be instantiated (overlay plugin names may be queried using AOOCount, AOOIndex and AOOName). When specifying a |
[in] | Text | A user-definable text that will be displayed in the Display control's status bar whenever the mouse pointer hovers over one of the overlay plugin's drag handles. |
[in] | CanDrag | Determines whether the overlay plugin may be dragged (TRUE ) or not (FALSE ). |
[in] | XorOnly | When set to TRUE , the overlay plugin will be painted in the XOR raster mode over the image (giving a colored and slightly inverted impression). Otherwise a solid paint mode will be used. Note that while dragging the overlay plugin over the display, the paint mode will always be XOR. |
[in] | Color | Regular color of the overlay plugin. Color values need to be given as integers with the red value stored in bit 0 to 7, the green value stored in bit 8 to 15 and the blue value stored in bit 16 to 23. Bit 24 and higher will not be evaluated and should be set to zero. |
[in] | Color | Highlight color of the overlay plugin. The highlight color will be used if the HighLightOverlayObject method has been called with an overlay plugin's creation ID to set it to highlighted mode. Color values need to be given as integers with the red value stored in bit 0 to 7, the green value stored in bit 8 to 15 and the blue value stored in bit 16 to 23. Bit 24 and higher will not be evaluated and should be set to zero. |
[in] | Filled | When set to TRUE the overlay plugin area may be filled, otherwise only the outline may be painted. Note that this depends on the overlay plugin - not all plugins actually evaluate this parameter. |
[in] | ID | Unique ID under which the overlay plugin shall be addressed after its creation (in function calls like MoveOverlayObject or RemoveOverlayObject). Note that these IDs must be unique and it is the caller's responsibility to make sure that this requirement is met. Using the same ID multiple times may lead to undefined behavior and/or memory leaks. |
[in] | PixelList | CVB pixel list (i.e. the reference counted object addressed through a PIXELLIST handle) that contains the vertices that define the location and/or appearance of the overlay plugin. This list must have AOONumVertices entries and a dimension of at least two (additional entries will be ignored). Due to the limitations of the MIDL language the pixel list pointer will need to be passed as an integer (make sure to use ToInt64() on the CLR's IntPtr type). |
[in] | ObjectData | Some overlay plugins accept or even require additional data for completely defining their appearance. If that is the case, the iCVCPlugIn.dll wrapper contains an accompanying structure that should be used to pass these additional data. The structures all have a ToPointer() member that generates an IntPtr that may then be converted to a long (through ToInt64() which may then be passed to this function. |
TRUE
if the instantiation of the overlay plugin was successful, FALSE
otherwise. boolean AddUserObject | ( | BSTR | Text, |
boolean | CanDrag, | ||
boolean | XorOnly, | ||
long | NumVertices, | ||
long | ID, | ||
__int3264 | Vertices | ||
) |
Generates a graphic overlay object.
A graphic object can be defined through a sequence of points (vertices). A line contains two vertices, a triangle three, a circle also two (a centerpoint and a point located on the perimeter). The vertices position is given in image coordinates. For a new image display the UserPaint event has to be triggered. This event tells the application which user object must be drawn again and where the object vertices are located now. This time the position is given in display coordinates. The user graphic can now be drawn by using the DCs.
[in] | Text | Any string to be displayed in the status bar as soon as the mouse position is located on the user-defined object. |
[in] | CanDrag | Determines whether the user object can be dragged. TRUE specifies that the object can be dragged, FALSE otherwise. |
[in] | XorOnly | Determines the mode used to draw the graphic. TRUE means that the overlay drawn is XORed to the image information, FALSE otherwise means that the used mode is CopyPen. During the dragging process the XorOnly mode is always used. |
[in] | NumVertices | Number of vertices of the graphic object. |
[in] | ID | Unique ID identifying the object. |
[in] | Vertices | POINT-type listening that has length of NumVertices and contains the position of the vertices. POINT is a structure of two Long values standing for the x and y coordinate of a point. |
TRUE
if was successful, FALSE
otherwise. boolean AddUserObjectNET | ( | BSTR | Text, |
boolean | CanDrag, | ||
boolean | XorOnly, | ||
long | ID, | ||
__int3264 | PixelList | ||
) |
Generates a graphic overlay object.
A graphic object can be defined through a sequence of points (vertices). A line contains two vertices, a triangle three, a circle also two (a centerpoint and a point located on the perimeter). The vertices position is given in image coordinates. For a new image display the UserPaint event has to be triggered. This event tells the application which user object must be drawn again and where the object vertices are located now. This time the position is given in display coordinates. The user graphic can now be drawn by using the DCs.
[in] | Text | Any string to be displayed in the status bar as soon as the mouse position is located on the user-defined object. |
[in] | CanDrag | Determines whether the user object can be dragged. TRUE specifies that the object can be dragged, FALSE otherwise. |
[in] | XorOnly | Determines the mode used to draw the graphic. TRUE means that the overlay drawn is XORed to the image information, FALSE otherwise means that the used mode is CopyPen. During the dragging process the XorOnly mode is always used. |
[in] | ID | Unique ID identifying the object. |
[in] | PixelList | CVB PixelList type listing that has a length of AOONumVertices and contains the positions of vertices. The PixelList needs to have a Dimension of >= 2 having X and Y stored as the first two elements. |
TRUE
if was successful, FALSE
otherwise. boolean ClientToImage | ( | long | ClientX, |
long | ClientY, | ||
long * | ImageX, | ||
long * | ImageY | ||
) |
Converts window coordinates to image coordinates.
Use this function, for example, to transform the position of the mouse position based on window coordinates into one based on image coordinates.
[in] | ClientX | X coordinate based on the window coordinate system. |
[in] | ClientY | Y coordinate based on the window coordinate system. |
[out] | ImageX | Contains the final (image) x coordinate based on the image coordinate system. |
[out] | ImageY | Contains the final (image) y coordinate based on the image coordinate system. |
TRUE
if was successful, FALSE
otherwise. boolean CopyImageToClipboard | ( | ) |
Copies the active AOI (refer to GetSelectedArea/ SetSelectedArea) from the display object to the Windows clipboard.
The AOI is transformed through the image coordinate system before it is copied.
TRUE
if copying was successful, FALSE
otherwise. boolean GetDisplayZoom | ( | long * | CenterX, |
long * | CenterY, | ||
long * | ZoomFactor | ||
) |
Ascertain the current zoom factor and pixel position of the center of the window.
[out] | CenterX | X coordinate of the window which is returned as image pixels. |
[out] | CenterY | Y coordinate of the window which is returned as image pixels. |
[out] | ZoomFactor | Current zoom factor. |
TRUE
if was successful, FALSE
otherwise. boolean GetDisplayZoomEx | ( | long * | CenterX, |
long * | CenterY, | ||
double * | ZoomFactor | ||
) |
Ascertain the current zoom factor and pixel position of the center of the window.
In difference to the GetDisplayZoom method this method takes a double value for the zoom factor.
[out] | CenterX | X coordinate of the window which is returned as image pixels. |
[out] | CenterY | Y coordinate of the window which is returned as image pixels. |
[out] | ZoomFactor | Current zoom factor. |
TRUE
if was successful, FALSE
otherwise. boolean GetLabelPosition | ( | long | ID, |
long * | x, | ||
long * | y | ||
) |
Determines the position of the selected label.
[in] | ID | Label ID from which the position will be checked. |
[out] | x | Contains the final x coordinate of the label. |
[out] | y | Contains the final y coordinate of the label. |
TRUE
if was successful, FALSE
otherwise. boolean GetOverlayObjectPosition | ( | long | ID, |
long | Index, | ||
long * | x, | ||
long * | y | ||
) |
Determines the position of a vertex of the specified overlay object.
[in] | ID | ID of the overlay object whose position is to be determined. |
[in] | Index | Index of the vertex whose position is to be determined. |
[out] | x | Contains the x coordinate of the object. |
[out] | y | Contains the y coordinate of the object. |
TRUE
if was successful, FALSE
otherwise. double GetPanoramaZoomFactor | ( | ) |
Returns the zoom factor used in panorama mode.
The panorama mode defines the minimum display zoom. Its is depending on the size of the display control window and the image size.
boolean GetSelectedArea | ( | double * | x0, |
double * | y0, | ||
double * | x1, | ||
double * | y1, | ||
double * | x2, | ||
double * | y2 | ||
) |
Determines the three corner points of a marked rectangle or parallelogram in the display object.
If the user did not mark anything the data returned is that of the whole image.
[out] | x0 | X coordinate of the point P0. |
[out] | y0 | Y coordinate of the point P0. |
[out] | x1 | X coordinate of the point P1. |
[out] | y1 | Y coordinate of the point P1. |
[out] | x2 | X coordinate of the point P2. |
[out] | y2 | Y coordinate of the point P2. |
TRUE
if was successful, FALSE
otherwise. boolean GetUserObjectPosition | ( | long | ID, |
long | Index, | ||
long * | x, | ||
long * | y | ||
) |
Determines the position of a vertex of the specified user object.
[in] | ID | ID of the user-defined object whose position is to be determined. |
[in] | Index | Index of the vertex of the user-defined object whose position is to be determined. |
[out] | x | Contains the x coordinate of the label. |
[out] | y | Contains the y coordinate of the label. |
TRUE
if was successful, FALSE
otherwise. boolean HasLabel | ( | long | ID | ) |
Checks if a label of a given ID exits.
[in] | ID | Label ID. |
TRUE
if label was found, FALSE
otherwise. boolean HasOverlayObject | ( | long | ID | ) |
Checks if a overlay object of a given ID exists.
[in] | ID | Overlay object ID. |
TRUE
if overlay object was found, FALSE
otherwise. boolean HasUserObject | ( | long | ID | ) |
Checks if a user object of a given ID exists.
[in] | ID | User object ID. |
TRUE
if user object was found, FALSE
otherwise. boolean HighLightLabel | ( | long | ID, |
boolean | Highlight | ||
) |
Enables or disables the highlighted display of a certain label.
[in] | ID | Label ID. |
[in] | Highlight | TRUE enables highlighted display. FALSE disables higlighted display. |
TRUE
if was successful, FALSE
otherwise. boolean HighLightOverlayObject | ( | long | ID, |
boolean | Highlight | ||
) |
Turns the highlighting of a certain overlay object on or off.
[in] | ID | ID of the overlay object. |
[in] | Highlight | TRUE means that highlighting of the overlay object is on, FALSE otherwise. |
TRUE
if was successful, FALSE
otherwise. boolean ImageToClient | ( | long | ImageX, |
long | ImageY, | ||
long * | ClientX, | ||
long * | ClientY | ||
) |
Converts image coordinates to coordinates based on the display window.
Use this function, for example, to transform an overlay given in image coordinates into window coordinates.
[in] | ImageX | X coordinate based on the image coordinate system. |
[in] | ImageY | Y coordinate based on the image coordinate system. |
[out] | ClientX | Contains converted (image) x coordinate based on the window coordinate system. |
[out] | ClientY | Contains converted (image) y coordinate based on the window coordinate system. |
TRUE
if was successful, FALSE
otherwise. boolean IsOverlayObjectAvailable | ( | BSTR | ObjectName, |
long * | ObjectType, | ||
long * | NumVertices, | ||
long * | NumVerticesUsed | ||
) |
Ascertain whether an overlay object is available or not.
If an overlay object is available, information on the object is returned.
[in] | ObjectName | Name of the overlay object. |
[out] | ObjectType | Type of overlay object. |
[out] | NumVertices | Number of the externally visible vertices of the object. |
[out] | NumVerticesUsed | Number of the internal vertices of the object. |
TRUE
if was successful, FALSE
otherwise. void Lock | ( | ) |
Blocks all other instances of the Display Control in order to synchronize calls to the user interface.
No other instance can access the UI after this function has been called. Calling the Unlock method will restart all other acquisition threads of the Display Control.
boolean MakeOverlayImage | ( | ) |
Transforms the active image in the display object inot an overlay-capable image format.
The lowest bit of each image plane is reserved for the overlay and preset by 0. As soon as one overlay bit is set to 1 the overlay becomes visible. The transformed image now has only a 7-bit dynamic in each image plane.
TRUE
if was successful, FALSE
otherwise. boolean MoveOverlayObject | ( | long | ID, |
long | x, | ||
long | y, | ||
boolean | MoveAbsolute | ||
) |
Moves an overlay object to the absolute x,y position or by x,y pixels.
[in] | ID | ID of the overlay object. |
[in] | x | Moving to absolute x position or by x pixels. This depends on MoveAbsolute. |
[in] | y | Moving to absolute y position or by y pixels. This depends on MoveAbsolute. |
[in] | MoveAbsolute | TRUE specifies that all vertices of the overlay object are moved in a way that the first vertex ends up at position x,y. FALSE means that all vertices are moved by x,y pixels. |
TRUE
if was successful, FALSE
otherwise. void Refresh | ( | ) |
Forces the image to be redrawn.
This method is needed in order to refresh the display in the ImageSnaped event of the image control.
boolean RemoveAllLabels | ( | ) |
Deletes all labels from the display object.
TRUE
if was successful, FALSE
otherwise. boolean RemoveAllOverlayObjects | ( | ) |
Removes all overlay objects from the display object.
TRUE
. TRUE
if was successful, FALSE
otherwise. boolean RemoveAllOverlays | ( | ) |
Removes all overlays, including labels, overlay Plug-Ins and user-defined objects from the display object.
TRUE
if was successful, FALSE
otherwise. boolean RemoveAllUserObjects | ( | ) |
Deletes all user-defined graphic objects from the display object.
TRUE
. TRUE
if was successful, FALSE
otherwise. boolean RemoveLabel | ( | long | ID | ) |
Deletes a selected label from the display object.
[in] | ID | Label ID. |
TRUE
if was successful, FALSE
otherwise. boolean RemoveOverlayObject | ( | long | ID | ) |
Removes a certain overlay object from the display object.
[in] | ID | ID of the overlay object. |
TRUE
if was successful, FALSE
otherwise. boolean RemoveUserObject | ( | long | ID | ) |
Removes a selected user-defined object from the display object.
[in] | ID | ID of the user-defined object. |
TRUE
if was successful, FALSE
otherwise. boolean SaveImage | ( | BSTR | Filename | ) |
Saves an image to a file using the given file name. This method has the same effect as a change to the Filename property. The CVCError event is triggered if an error occurs.
[in] | Filename | Entire file name and path (e.g. C:\IMAGE\MYIMAGE.BMP). |
TRUE
if saving was successful, FALSE
otherwise. boolean SaveImageByDialog | ( | ) |
Saves an image to a file using the options of a dialog box.
This method has the same effect as a change to the Filename property. The CVCError event is triggered if an error occurs.
TRUE
if saving was successful, FALSE
otherwise. boolean SaveWindowToBitmap | ( | __int3264 | hWnd, |
BSTR | Filename | ||
) |
Saves the contents of a window to a bitmap file.
The method provides the functionality of a simple screen capture utility.
If the user calls this method with a handle to the window of a display control, the function will save the image data as well as all image overlays. The windows client area is saved 'as it is' meaning that the size of the image is the same as the size of the display window and not the size of the image within the display.
[in] | hWnd | Handle to the window which client should be saved. |
[in] | Filename | Filename. Only bitmap files are supported by this function. |
TRUE
if was successful, FALSE
otherwise. boolean SetDisplayZoom | ( | long | CenterX, |
long | CenterY, | ||
long | ZoomFactor | ||
) |
Sets the zoom factor of the display on screen.
[in] | CenterX | X coordinate of the window which is specified as image pixels. |
[in] | CenterY | Y coordinate of the window which is specified as image pixels. |
[in] | ZoomFactor | Required zoom factor (values are 0,1,2,4,8,16). A factor of 0 means that the entire image is shown as big as possible in the window (Panorama View). A factor of 1 means that the image is shown in its original size. |
TRUE
if was successful, FALSE
otherwise. boolean SetDisplayZoomEx | ( | long | CenterX, |
long | CenterY, | ||
double | ZoomFactor | ||
) |
Sets the zoom factor of the display on screen.
In difference to the SetDisplayZoom method this method takes a double value for the zoom factor. There is no upper limit for the zoom factor. The lower limit is defined by GetPanoramaZoomFactor which returns the zoom factor that is used as the smallest zoom factor.
[in] | CenterX | X coordinate of the window which is specified as image pixels. |
[in] | CenterY | Y coordinate of the window which is specified as image pixels. |
[in] | ZoomFactor | Required zoom factor. The smallest value is depending on the zoom factor is used in panorama mode. A factor of 1 means that the image is shown in its original size. |
TRUE
if was successful, FALSE
otherwise. boolean SetSelectedArea | ( | double | x0, |
double | y0, | ||
double | x1, | ||
double | y1, | ||
double | x2, | ||
double | y2 | ||
) |
Sets the three corner points of a marked rectangle or parallelogram in the display object.
[in] | x0 | X coordinate of the point P0. |
[in] | y0 | Y coordinate of the point P0. |
[in] | x1 | X coordinate of the point P1. |
[in] | y1 | Y coordinate of the point P1. |
[in] | x2 | X coordinate of the point P2. |
[in] | y2 | Y coordinate of the point P2. |
TRUE
if was successful, FALSE
otherwise. boolean SubAreaSelected | ( | ) |
Checks whether an image is selected.
Using this function you can determine, for example, the generation of a rectangle or a parallelogram by means of the mouse.
TRUE
if an image area is selected, FALSE
otherwise. void Unlock | ( | ) |
Release the lock on all other instances of the Display Control.
Restart all other acquisition threads of the Display Control which were locked with the Lock.