I found some code online to take a screen image , and also a free FTP program.
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
Taking screenshot programmatically
Collapse
X
-
This work for me: StackOverflow
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 ssijbabu, 10-07-2012, 07:10 AM
|
10 responses
4,477 views
0 likes
|
Last Post
by alex@n
Today, 12:29 PM
|
||
Started by john_44573, Today, 11:43 AM
|
1 response
4 views
0 likes
|
Last Post Today, 12:09 PM | ||
Started by rodriguesdanny, Today, 12:06 PM
|
0 responses
1 view
0 likes
|
Last Post Today, 12:06 PM | ||
Started by Bobin, 03-12-2024, 08:51 AM
|
17 responses
537 views
0 likes
|
Last Post Today, 11:44 AM | ||
Started by Philippe56140, Today, 11:42 AM
|
0 responses
5 views
0 likes
|
Last Post Today, 11:42 AM |
Comment