• 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

R G B components of a Brush in NT8?

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

    R G B components of a Brush in NT8?

    How can I get the R G B components of a Brush in NT8?

    #2
    Hello afshinmoshrefi,

    Are you trying to find the RGB values of an existing brush?
    You could get this by casting the System.Windows.Media.Brush as a System.Windows.Media.SolidColorBrush.
    Brush aBrush = Brushes.Honeydew;
    SolidColorBrush sBrush = aBrush as SolidColorBrush;
    Print(string.Format("{0} | R: {1}, G: {2}, B: {3}, A: {4}", aBrush.ToString(), sBrush.Color.R, sBrush.Color.G, sBrush.Color.B, sBrush.Color.A));

    Or are you trying to create a brush using RGB values?
    MyBrush = new SolidColorBrush(Color.FromArgb(100, 56, 120, 153));
    myBrush.Freeze();
    https://ninjatrader.com/support/help...th_brushes.htm
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by manugarc, Today, 01:15 PM
    0 responses
    2 views
    0 likes
    Last Post manugarc  
    Started by JMont1, Today, 11:42 AM
    0 responses
    4 views
    0 likes
    Last Post JMont1
    by JMont1
     
    Started by ryanmercado, Today, 10:04 AM
    0 responses
    3 views
    0 likes
    Last Post ryanmercado  
    Started by uiwislth, Yesterday, 11:25 PM
    0 responses
    5 views
    0 likes
    Last Post uiwislth  
    Started by Steve L, Yesterday, 10:04 PM
    0 responses
    4 views
    0 likes
    Last Post Steve L
    by Steve L
     
    Working...
    X