API Documentation > CorelDRAW > 2025-v26 > Bitmap > IVGBitmap
Bitmap.Mode property
Gets the color mode of the bitmap
Syntax:
Property Get Mode() As cdrImageType
Remarks:
The Mode property returns the color mode of the bitmap.
Examples:
The following VBA example displays the number of bitmaps in the RGB color mode.
Sub Test()
Dim s As Shape, n As Long
n = 0
For Each s In ActivePage.Shapes
  If s.Type = cdrBitmapShape Then

 If s.Bitmap.Mode = cdrRGBColorImage Then n = n + 1

 End If
  Next s
  MsgBox "There are " & n & " RGB bitmaps."

End Sub