Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Draw.Line() Opacity ?

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

    Draw.Line() Opacity ?

    Does anyone know if there is a way to set Opacity for Draw.Line()? I know there is not a parameter for it, but I am wondering if there is a way to do it with the Brushes or something else?

    #2
    Hello Erik, thanks for your post.

    A custom brush needs to be constructed to control Opacity (alpha value). Instead of using one of the pre-built brushes (Brushes.Red, Brushes.Blue, etc), construct your own SolidColorBrush employing the Color.FromArgb() method, the first value is the "alpha":

    https://ninjatrader.com/support/help...gcustombrushes

    Kind regards,
    -ChrisL

    Comment


      #3
      Awesome, thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      51 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      31 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      165 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      100 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      160 views
      2 likes
      Last Post CaptainJack  
      Working...
      X