Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

opacity paramterer

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

    opacity paramterer

    from where to where does the opacity parameter vary for brush? from 0 to 1 or from 0 to 255?
    Last edited by ttodua; 10-07-2019, 06:52 AM.

    #2
    Hello TazoTodua,

    Thanks for your post.

    Microsoft defines Windows Media Brush's Opacity property as follows.

    The value of the Opacity property is expressed as a value between 0.0 and 1.0. The default value is 1.0.

    Documentation linked below id publicly available.



    As an example, the following could be used to adjust brush opacity, where OPACITY is an int between 0 and 100.

    YourNewBrush.Opacity = OPACITY / 100.0;
    YourNewBrush.Freeze();

    Please let us know if you have any additional questions, please don't hesitate to ask.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rocketman7, Today, 09:41 AM
    4 responses
    15 views
    0 likes
    Last Post rocketman7  
    Started by selu72, Today, 02:01 PM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by WHICKED, Today, 02:02 PM
    2 responses
    12 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by f.saeidi, Today, 12:14 PM
    8 responses
    21 views
    0 likes
    Last Post f.saeidi  
    Started by Mikey_, 03-23-2024, 05:59 PM
    3 responses
    56 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Working...
    X