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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      656 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      370 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      109 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      574 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      578 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X