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.
    JesseNinjaTrader Customer Service

    Comment


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

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Rapine Heihei, 04-23-2024, 07:51 PM
      2 responses
      30 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      943 views
      0 likes
      Last Post spwizard  
      Started by Max238, Today, 01:28 AM
      0 responses
      9 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by rocketman7, Today, 01:00 AM
      0 responses
      7 views
      0 likes
      Last Post rocketman7  
      Started by wzgy0920, 04-20-2024, 06:09 PM
      2 responses
      28 views
      0 likes
      Last Post wzgy0920  
      Working...
      X