Results 1 to 9 of 9

Thread: [RESOLVED] My Graphics appear upside down?

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2013
    Posts
    177

    Resolved [RESOLVED] My Graphics appear upside down?

    Hey,

    I have been playing with the graphics class in vb.net and for some reason everything I draw appears upside down.

    Here are the co-ordinates going in

    From: X - 338 Y - 581 To: X - 338 Y - 564
    From: X - 338 Y - 564 To: X - 338 Y - 564
    From: X - 338 Y - 564 To: X - 389 Y - 564
    From: X - 389 Y - 564 To: X - 394 Y - 564
    From: X - 394 Y - 564 To: X - 394 Y - 611
    From: X - 394 Y - 611 To: X - 394 Y - 616
    From: X - 394 Y - 616 To: X - 335 Y - 616
    From: X - 335 Y - 616 To: X - 335 Y - 616
    From: X - 335 Y - 616 To: X - 335 Y - 603

    Code:
      g.DrawLine(New Pen(newColor, size), x_loc(k), y_loc(k), x_loc(k + 1), y_loc(k + 1))
                            Console.WriteLine("From: X - " & x_loc(k) & " Y - " & y_loc(k) & " To: X - " & x_loc(k + 1) & " Y - " & y_loc(k + 1))
    This is what I end up with

    Name:  DETE.JPG
Views: 454
Size:  5.7 KB

    And while typing this I figured out what could be wrong!!

    I am guessing my origin for the drawing is set to the top leftcorner of the picture box I am drawing in, is it possible to change the origin to the bottom left corner?
    Last edited by Crzyrio; Apr 25th, 2013 at 03:26 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width