Announcement

Collapse
No announcement yet.

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.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    82 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    43 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    64 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    68 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    56 views
    0 likes
    Last Post CarlTrading  
    Working...
    X