Hello,
As you've seen SaveToBitmapFile and SaveToJPEGFile have added a [DPI As Long] parameter. Note this parameter is optional and the rest of parameters in SaveToJPEGFile were already in v7.
In v7 we had:
- Options for BMP:
Code: Select all
TChart1.Export.SaveToBitmapFile(FileName As String)
TChart1.Export.asBMP.SaveToFile(FileName As String)
- Options for JPEG:
Code: Select all
TChart1.Export.SaveToJPEGFile(FileName As String, Gray As Boolean, Performance As EJPEGPerformance, Quality As Long, Width As Long, Height As Long)
TChart1.Export.asJPEG.SaveToFile(FileName As String)
In v2015 these methods are:
- Options for BMP:
Code: Select all
TChart1.Export.SaveToBitmapFile(FileName As String, [DPI As Long])
TChart1.Export.asBMP.SaveToFile(FileName As String)
- Options for JPEG:
Code: Select all
TChart1.Export.SaveToJPEGFile(FileName As String, Gray As Boolean, Performance As EJPEGPerformance, Quality As Long, Width As Long, Height As Long, [DPI As Long])
TChart1.Export.asJPEG.SaveToFile(FileName As String)
The arguments in SaveToJPEGFile are:
- FileName As String: Complete path and filename to create the image file.
- Gray As Boolean: Choose if the generated image should be colored or B&W.
- Performance As EJPEGPerformance: jpegBestQuality or jpegBestSpeed.
- Quality As Long: 100 = best quality, 25 = pretty awful.
- Width As Long, Height As Long: Define the image size.
- [DPI As Long]: Define the DPIs of the image. Optional.