• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw Image (png) on Chart

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

    Draw Image (png) on Chart

    Hello,

    I'm trying to load an image from file and display it on the chart; a company logo.

    Using the example NinjaJess posted here, I am getting an exception "Unsupported Pixel Format." I have connected with the debugger and changed to the PixedFormat that RenderTarget is using, but the same exception persists.

    Any light you may be able to shed would be helpful.

    Thank you
    mrlogik
    NinjaTrader Ecosystem Vendor - Purelogik Trading

    #2
    Hello mrlogik,

    Thanks for opening the thread.

    I recently made some changes to the example Jesse posted to dispose of any resources needed to create the bitmap on RenderTarget changes and on the indicator's termination.

    Attached is an updated example. If you are still able to encounter issues with this script, could you provide us some steps we could take to reproduce on our end?

    We are happy to look into this further as needed.
    Attached Files
    JimNinjaTrader Customer Service

    Comment


      #3
      Works perfectly, thank you Jim
      mrlogik
      NinjaTrader Ecosystem Vendor - Purelogik Trading

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by otislauwaert, Today, 02:02 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by rafleischman, 10-18-2018, 12:11 PM
      2 responses
      21 views
      0 likes
      Last Post Alfred
      by Alfred
       
      Started by dadarara, Yesterday, 02:42 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Dan_D_Trader, Today, 04:46 PM
      0 responses
      2 views
      0 likes
      Last Post Dan_D_Trader  
      Started by pstock805, Today, 08:25 AM
      3 responses
      15 views
      0 likes
      Last Post Trader17  
      Working...
      X