Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add/Subtract x quantity of pixels

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

    Add/Subtract x quantity of pixels

    From an example in this forum I got an example where it Renders a Rectangle:
    In order to render, the code has to obtain the center of the Rectangle or Ellipse. using the following piece of code
    .


    The Question:
    How shall the syntax be, in order to add/subtracts 4 pixels instead of 4 Ticksize??

    Thank you very much!!
    FVJ

    #2
    Hello efeuvejota01,

    When working with pixels those are just numbers so you can just subtract the amount you wanted. If you wanted to add or subtract 4 pixels you would just subtract or add 4 without doing any additional math. For example if the coordiate was 500 and you wanted to subtract pixels that would be 500 - 4.



    Comment


      #3
      Ahhh !!! undestood...
      Thank you..
      FVJ

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CaptainJack, 05-29-2026, 05:09 AM
      0 responses
      236 views
      0 likes
      Last Post CaptainJack  
      Started by CaptainJack, 05-29-2026, 12:02 AM
      0 responses
      151 views
      0 likes
      Last Post CaptainJack  
      Started by charlesugo_1, 05-26-2026, 05:03 PM
      0 responses
      162 views
      1 like
      Last Post charlesugo_1  
      Started by DannyP96, 05-18-2026, 02:38 PM
      1 response
      243 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      198 views
      0 likes
      Last Post CarlTrading  
      Working...
      X