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 RideMe, 04-07-2024, 04:54 PM
      5 responses
      28 views
      0 likes
      Last Post NinjaTrader_BrandonH  
      Started by f.saeidi, Today, 08:13 AM
      1 response
      4 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by DavidHP, Today, 07:56 AM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Erick  
      Started by kujista, Today, 06:23 AM
      3 responses
      9 views
      0 likes
      Last Post kujista
      by kujista
       
      Started by Mindset, Yesterday, 02:04 AM
      2 responses
      18 views
      0 likes
      Last Post NinjaTrader_RyanS  
      Working...
      X