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 CarlTrading, 05-11-2026, 05:56 AM
      0 responses
      28 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 05-10-2026, 08:12 PM
      0 responses
      20 views
      0 likes
      Last Post CarlTrading  
      Started by Hwop38, 05-04-2026, 07:02 PM
      0 responses
      183 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      337 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      261 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X