API Documentation > CorelDRAW > 2025-v26 > Bitmap > IVGBitmap
Bitmap.Inflate method
Inflates a bitmap
Syntax:
Sub Inflate(ByVal Width As Long, ByVal Height As Long)
Parameters:
Name Type Description
Width
Long
Height
Long
Remarks:
The Inflate method increases the size of a bitmap by adding the specified number of pixels at each side of the bitmap.
Examples:
The following VBA example increases the size of the active bitmap to at least 400 × 400 pixels.
Sub Test()
Dim s As Shape
For Each s In ActivePage.Shapes
  If s.Type = cdrBitmapShape Then

 With s.Bitmap


If .SizeWidth < 400 And .SizeHeight < 400 Then


  .Inflate (400 - .SizeWidth)/2, (400 - .SizeHeight)/2


End If

 End With
  End If
Next s 
End Sub