I found some code online to take a screen image , and also a free FTP program.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Taking screenshot programmatically
Collapse
X
-
This work for me: StackOverflow
Chart must be maximized on main monitor: this line this.ChartControl.Bounds use local coordinates instead of global. When chart maximized it's fit good.Code:try { Rectangle bounds = this.ChartControl.Bounds; using (Bitmap bitmap = new Bitmap(bounds.Width, bounds.Height)) { using (Graphics g = Graphics.FromImage(bitmap)) { g.CopyFromScreen(new Point(bounds.Left,bounds.Top), Point.Empty, bounds.Size); } bitmap.Save("f:\\AutoScreenshots\\"+CurrentBar +".jpg", ImageFormat.Jpeg); } } catch (Exception ex) { Print(" -------- Save Screenshot Exception: " + ex); }Last edited by fx.practic; 09-21-2016, 05:08 AM.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
576 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
334 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
101 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
553 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
551 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment