Functions | |
void | AboutBox () |
Displays the About box of the Common Vision Image Control. | |
boolean | Clear (long Plane, double Value) |
Sets the specified image plane to the required initial gray scale value. More... | |
boolean | CopyImageToClipboard () |
Copies any image that is present to the Windows clipboard. More... | |
boolean | CreateEmptyImage (long Dimension, long Width, long Height, boolean ForceOverlay) |
Creates a new, empty image. More... | |
long | DataType (long Plane) |
Returns the data type of a specified plane of the image. More... | |
boolean | GetGrab2Status (Grab2InfoType Grab2InfoType, double *Grab2Info) |
Returns status information of the IGrab2 inteface of the underlying driver image. More... | |
boolean | LoadImage (BSTR Filename) |
Loads an image from a file using the given name. More... | |
boolean | LoadImageByDialog () |
Loads an image from a file using the given file name. More... | |
boolean | LoadImageByUserDialog (BSTR DefaultPath, BSTR Titel, BSTR Filter) |
Loads an image from a file using the Windows common dialog box to open files. More... | |
boolean | PasteImageFromClipboard () |
If the Windows clipboard contains an image it will be pasted. 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 | SaveImageByUserDialog (BSTR DefaultPath, BSTR Titel, BSTR Filter) |
Saves an image to a file using the options of a dialog box. More... | |
boolean | SaveLossyImage (BSTR Filename, double Quality) |
Saves an image to a file using the given file name, applying a lossy compression codec. More... | |
boolean | ScanImage (long Density, boolean UseCS) |
Scans the image in a defined area. More... | |
boolean | ScanPlane (long Plane, long Density, boolean UseCS) |
Scans the image in a defined area in a specified plane. More... | |
boolean | Snap () |
Acquires an individual image from the camera. More... | |
boolean Clear | ( | long | Plane, |
double | Value | ||
) |
Sets the specified image plane to the required initial gray scale value.
The gray scale value is passed as Double to ensure that different data types of the image can be supported.
[in] | Plane | Index of the plane to be initialized. Index ranges between zero and image dimension. |
[in] | Value | Gray scale value for image data (e.g. 0..255 for an 8-bit image). |
TRUE
if successful, FALSE
otherwise. boolean CopyImageToClipboard | ( | ) |
Copies any image that is present to the Windows clipboard.
TRUE
if copying was successful, FALSE
otherwise. boolean CreateEmptyImage | ( | long | Dimension, |
long | Width, | ||
long | Height, | ||
boolean | ForceOverlay | ||
) |
Creates a new, empty image.
[in] | Dimension | Dimension of the image to be created. |
[in] | Width | Widht of the image to be created. |
[in] | Height | Height of the image to be created. |
[in] | ForceOverlay | TRUE specifies that a overlay-capable image is created, FALSE otherwise. |
TRUE
if creation was successful, otherwise FALSE
. long DataType | ( | long | Plane | ) |
Returns the data type of a specified plane of the image.
The data type has following individual bits:
31 | ... | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Reserved | O | F | S | Bits/pixel |
Where S = Signed, F = Float (only for 32 or 64 bits/pixel) and O = Overlay bit
[in] | Plane | Index of the plane of the source image. Index ranges between zero and image dimension. |
boolean GetGrab2Status | ( | Grab2InfoType | Grab2InfoType, |
double * | Grab2Info | ||
) |
Returns status information of the IGrab2 inteface of the underlying driver image.
[in] | Grab2InfoType | Information you want querry. For information you might request see Grab2InfoType. |
[out] | Grab2Info | Requested information as return value. |
TRUE
if successful, otherwise FALSE
. boolean LoadImage | ( | BSTR | Filename | ) |
Loads an image from a file using the given name.
It is possible to load CVB VIN-drivers for the supported image acquisition devices like framegrabbers, cameras or other devices. 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 path of the file. |
TRUE
if loading was successful, otherwise FALSE
. boolean LoadImageByDialog | ( | ) |
Loads an image from a file using the given file name.
This includes also loading CVB vin-drivers for the supported image acquistion devices like frame grabbers, cameras or other devices.
TRUE
if loading was successful, FALSE
otherwise. boolean LoadImageByUserDialog | ( | BSTR | DefaultPath, |
BSTR | Titel, | ||
BSTR | Filter | ||
) |
Loads an image from a file using the Windows common dialog box to open files.
The user can change the appearance of the dialog box.
It is possible to load CVB VIN-drivers for the supported image acquisition devices like framegrabbers, cameras or other devices.
This method has the same effect as a change to the Filename property. The CVCError event is triggered if an error occurs.
[in] | DefaultPath | The default path of the dialog box. In case of NULL the current path will be taken. |
[in] | Titel | Title of the dialog box. |
[in] | Filter | A valid filter string (refer to Windows documentation on FileDialog), e.g. "CVC Drivers (*.vin)|*.vin". |
TRUE
if image was loaded successfully, otherwise FALSE
(e.g. if the dialog box was closed with cancel). boolean PasteImageFromClipboard | ( | ) |
If the Windows clipboard contains an image it will be pasted.
TRUE
if pasting was successful, FALSE
otherwise. boolean SaveImage | ( | BSTR | Filename | ) |
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 SaveImageByUserDialog | ( | BSTR | DefaultPath, |
BSTR | Titel, | ||
BSTR | Filter | ||
) |
Saves an image to a file using the options of a dialog box.
It is possible to change the appearance of teh dialog box.
[in] | DefaultPath | The default path of the dialog box. In case of NULL the current path will be taken. |
[in] | Titel | Title of the dialog box. |
[in] | Filter | A valid filter string (refer to Windows documentation on FileDialog), e.g. "CVC Drivers (*.vin)|*.vin". |
TRUE
if saving was successful, otherwise FALSE
. boolean SaveLossyImage | ( | BSTR | Filename, |
double | Quality | ||
) |
Saves an image to a file using the given file name, applying a lossy compression codec.
Lossy codecs drop image information for the sake of a higher compression ratio. This generally introduces artifacts into the image. The WriteLossyImageFile gives control over the tradeoff between compression ratio and image quality by means of the Quality parameter.
[in] | Filename | Entire path of the file to save. |
[in] | Quality | Controls the balance between the quality and the compression ratio. The value ranges from a codec-specific minimum and 1.0. Higher values leading to image files that are bigger and contain less artifacts. |
TRUE
if saving was successful, otherwise FALSE
. boolean ScanImage | ( | long | Density, |
boolean | UseCS | ||
) |
Scans the image in a defined area.
The image data can be accessed easily with this function (especially using Visual Basic). An event is gernerated for each pixel. This event returns the reference of the pixel and allows the user to modify the pixel value (refer to StartOfLine, EndOfLine and NextPixel events).
[in] | Density | Defines the scan density. The density is between zero and 1000. |
[in] | UseCS | The defined coordinate system will be used if UseCs is TRUE . Otherwise the area of interest relates to the left, upper corner of the image. |
TRUE
if succeeded, otherwise FALSE
. boolean ScanPlane | ( | long | Plane, |
long | Density, | ||
boolean | UseCS | ||
) |
Scans the image in a defined area in a specified plane.
The image data can be accessed easily with this function (especially using Visual Basic). An event is gernerated for each pixel. This event returns the reference of the pixel and allows the user to modify the pixel value (refer to StartOfLine, EndOfLine and NextPixel events).
[in] | Plane | Defines the disired plane. The index of the plane have to be between zero and the image dimension. |
[in] | Density | Defines the scan density. The density is between zero and 1000. |
[in] | UseCS | The defined coordinate system will be used if UseCs is TRUE . Otherwise the area of interest relates to the left, upper corner of the image. |
TRUE
if succeeded, otherwise FALSE
. boolean Snap | ( | ) |
Acquires an individual image from the camera.
TRUE
, the value is reset to FALSE
. The function returns after acquiring the image. A sequence of Snapcalls cannot generally replace live image acquisition. For live image acquisition please use the Grab property. TRUE
if acquisition was successful, otherwise FALSE
or when an error occured during acquisition.