API Documentation > CorelDRAW > 2025-v26 > Bitmap > IVGBitmap
Bitmap.SaveAs method
Saves the bitmap to the specified file and returns the filter object
Syntax:
Function SaveAs(ByVal FileName As String, ByVal Filter As cdrFilter, Optional ByVal Compression As cdrCompressionType = cdrCompressionNone) As ExportFilter
Parameters:
Name Type Description
FileName
String
Filter
Compression
Specifies the compression to apply.
Remarks:
The SaveAs method saves a bitmap to a specified file and returns an ExportFilter object.
Examples:
The following VBA example saves each bitmap on the active page in the BMP format.
Sub Test()
Dim s As Shape
Dim ex As ExportFilter
For Each s In ActivePage.Shapes
  If s.Type = cdrBitmapShape Then

 Set ex = s.Bitmap.SaveAs("c:\" & s.StaticID & ".bmp", cdrBMP, _


cdrCompressionRLE_LW)

 ex.Finish
  End If
Next s 
End Sub