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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      23 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      20 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      14 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      10 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      41 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X