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 hazylizard, Today, 08:38 AM
    0 responses
    4 views
    0 likes
    Last Post hazylizard  
    Started by Max238, Today, 01:28 AM
    5 responses
    42 views
    0 likes
    Last Post Max238
    by Max238
     
    Started by giulyko00, Yesterday, 12:03 PM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by habeebft, Today, 07:27 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChristopherS  
    Started by AveryFlynn, Today, 04:57 AM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Erick  
    Working...
    X