Image Class |
Namespace: Selenium
Dim instance As Image
The Image type exposes the following members.
Name | Description | |
---|---|---|
Image(Bitmap) |
Creates an image object from a bitmap
| |
Image(MemoryStream) |
Creates an image object from bytes.
|
Name | Description | |
---|---|---|
CompareTo |
Compare to the provided image
| |
Copy |
Copy the image to the Clipboard.
| |
Dispose |
Empty the image ans release all the ressources.
| |
Equals |
Return true if images are the same.
(Overrides ObjectEquals(Object).) | |
GetBitmap |
Returns the underlying Bitmap
| |
GetHashCode |
Returns the hash code
(Overrides ObjectGetHashCode.) | |
Load |
Load an image file
| |
Resize |
Resizes the current image
| |
SaveAs |
Save the image to a file. Supported format: png, bmp, gif and jpg.
| |
ToExcel |
Insert the image in an Excel sheet.
| |
ToString |
Returns object description
(Overrides ObjectToString.) |
Name | Description | |
---|---|---|
(Image to Bitmap) |
Explicit casting to a Bitmap
|
Name | Description | |
---|---|---|
CRC |
Returns the image CRC32 hash in hexadecimal.
| |
DiffCount |
Number of non matching pixels resulted from a comparison.
| |
Height |
Image height.
| |
Width |
Image width.
|
driver.TakeScreenShoot().SaveAs "%USERPROFILE%\Desktop\capture_{yyyyMMdd-HHmmss}.png"