This class enables the return of selected information about a specific image. The class cannot be generated and can be used as a static function.
The static function:
Static Function ImageStat ( ImagePath As String ) As ImageStat
returns information about the image specified in the “ImagePath” argument.
23.4.2.4.1 Example:
Public Sub Form_Open() Dim statImage As ImageStat statImage = ImageStat(User.Home &/ "Pictures/example.jpg") Print "Image Depth = " & statImage.Depth Print "Image Height = " & statImage.Height Print "Image Width = " & statImage.Width Print "Image Path = " & statImage.Path Print "Image Type = " & statImage.Type End
The following table describes the properties of the class:
Property | Type | Description |
---|---|---|
Depth | Integer | Returns the colour depth of the image in bits. |
Height | Integer | Returns the height of the image in pixels. |
Width | Integer | Returns the image width in pixels. |
Path | String | Returns the path of the image. |
Type | String | Returns the mimetype of the image as a string. The string can be “image/jpeg”, “image/gif”, “image/png”, “image/bmp” or “image/tiff”. |
Table 23.4.2.4.1 : Properties class ImageStat (gb.image)