Graphic Pen 1 Sided Width?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adnanyaseen
    New Member
    • Apr 2012
    • 4

    Graphic Pen 1 Sided Width?

    Hi,
    I am drawing two circle (inner circle and outer circle) using DrawElipse method. I have created two pen object named OuterPen and InnerPen and creating Outer Circle using OuterPen and Inner Circle using InnerPen. Problem that I am facing is that when I increase the size of outer pen lets say 10px then it overlaps the inner circle and inner circle is hide. How can I increase the size of OuterPen outwards and not inwards so that it don't overlap the inner circle?

    Regards,
  • RhysW
    New Member
    • Mar 2012
    • 70

    #2
    I dont think you can, when you extend its size its extended from the centre of the tool usually, an equal amount on both sides. you could always extend the pen and move it to the size based on the width its increased to so it wouldn't over-lap. e.g you extend it by 10px move it to the right by 5px, (I could be wrong about it extending from the centre, if I am then instead of moving it only 5px move it all 10, you may have to do a little bit of experimenting to find out how it extends and write a little equation to move it the correct distance based on its size)

    Comment

    • adnanyaseen
      New Member
      • Apr 2012
      • 4

      #3
      It can be done like you said but the problem is that if I increase pen size by lets 1 pixel then it increase 0.5 pixel on each side and Rectangle object doesn't take float values.

      Comment

      • RhysW
        New Member
        • Mar 2012
        • 70

        #4
        only allow increments in even numbers then, i cant make rectangles accept something they dont XD

        Comment

        Working...