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

36 lines
767 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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.