Files
mql5-skills/skills/mql5/references/docs/34-standardlibrary/2634-standardlibrary-cchart-cchartscreenshot.md
T
2026-06-23 21:47:51 +08:00

767 B

ScreenShot

Creates a screenshot of the specified chart in its current state in .gif format.

bool  ScreenShot(
   string           filename,                   // file name
   int              width,                      // width
   int              height,                     // height
   ENUM_ALIGN_MODE  align_mode=ALIGN_RIGHT      // align type
   ) const

Parameters

filename

[in]  File name for screenshot.

width

[in]  Screenshot width in pixels.

height

[in]  Screenshot height in pixels.

align_mode=ALIGN_RIGHT

[in]  Align mode, if screenshot is narrow.

Return Value

true - successful, false - error.