comp • gb.image • imagestat

ImageStat (gb.image)

This class allows to return information about a specific image.

This class is not creatable.
This class can be used as a
Returns information about the image specified by the Path argument.
static function
.

Properties

Returns the color depth of the image in bits.
Depth  
Returns the image height in pixels.
Height  
Returns the path of the image.
Path  
Returns the image mimetype as a string.
Type  
Returns the image width in pixels.
Width  

Example

Public Sub Form_Open()
  
  Dim isImage As ImageStat

  isImage = ImageStat(User.Home &/ "Pictures/image1.jpg")

  Print "Image Depth = " & isImage.Depth
  Print "Image Height = " & isImage.Height
  Print "Image Width = " & isImage.Width
  Print "Image Path = " & isImage.Path
  Print "Image Type = " & isImage.Type

End