Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Capturing Chart Control Image

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Capturing Chart Control Image

    I am writing an indicator that can capture an image of the chart that it's running on. I'm using a technique known to work with wpf controls. However when I run it using the ChartControl that's passed to OnRender the result is a black image. The dimensions look correct.
    I attached the indicator. After running the indicator on a chart the image will be in the Windows clipboard. Just paste into an app that can handle images.

    The cause of this problem may be the same reason that the OBS Recorder can not record NT8 windows. I wrote about that here:
    https://ninjatrader.com/support/foru...cording-window

    It would be very useful and appreciated if NinjaTrader windows could be captured. Can you forward this indicator to the development team so that they can investigate further? Perhaps there's a switch somewhere that can be thrown that will allow access to the image.
    Attached Files
    Last edited by Brillo; 02-17-2020, 12:45 PM.

    #2
    Hello Brillo,

    You can find a sample of capturing a chart screenshot in the following link: https://ninjatrader.com/support/foru...re?postcount=7

    NinjaTrader 8 uses sharpDX for rendering everything visual so any type of capture of anything rendered would need to be done in a SharpDX way, WPF captures will not be of any help in this case because WPF rendering is not being used.The chart specifically has a method to capture its contents called GetScreenshot


    Please let me know if I may be of further assistance.

    Comment


      #3
      Thanks Jesse. That's what I was looking for.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      77 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      45 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      27 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      32 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      63 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X