Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 467055
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:32:32+00:00 2026-05-12T23:32:32+00:00

I am drawing a series of Points using the Graphics class. I am reading

  • 0

I am drawing a series of Points using the Graphics class. I am reading from a Point array. For whatever reason the rendered image is upside down (flipped on the X axis). Is there a simple way to tell the Graphics class to draw “upside down” ? Many thanks.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:32:32+00:00Added an answer on May 12, 2026 at 11:32 pm

    You should note that the default orientation or direction of graphics in most drawing systems is from top of display to the bottom of the display. To compensate for this, you need to know the intended height of your viewing area, and then subtract your coordinates from that height. This will reverse the orientation, and set your figures relative to the bottom of the viewing area.

    Let’s say you have two points specified as <x,y> and a viewport that is 300 (w) x 200 (h).

    {{0, 0}, {100, 200}}
    

    When drawing in the viewing area, <x, y> will get mapped to <x, 200-y>. This gives us the following points.

    {{0, 200}, {100, 0}}
    

    There are also mechanisms to switch the mapping mode to Cartesian style coordinates, which will probably match your source data, but is usually avoided because it will remap everything else that has already compensated for the default orientation.

    The SetMapMode() function in Windows can be used for this purpose if this is what you really wish.

    SetMapMode() @ MSDN

    Here’s the P/Invoke signature of the function. (from
    pinvoke.net: setmapmode (gdi32) )

    [DllImport("gdi32.dll")]
    static extern int SetMapMode(IntPtr hdc, int fnMapMode);
    

    edit:

    There’s one more way to accomplish this, which I personally haven’t tried.

    Graphics.TransformPoints Method @ MSDN

    This allows you to specify coordinate systems, and the Graphics object will do the mapping for you. In your case, you may wish to call it with CoordinateSpace.World or CoordinateSpace.Page as the first argument, and CoordinateSpace.Device as the second.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm drawing a series of markers on a map (using v3 of the maps
I've been trying to draw a series of points using a UIComponent using: var
While drawing graphics in 2D, how can I handle the depth of a picture
We are developing an drawing application for iOS and android. I am using cubic
i am using a series of linkbuttons A-z which are dynamically created what i
I am currently using wx.CustomTree, to use to display a series of configuration settings.
I am new to javascripting and jquery. I am drawing charts using flot in
I am drawing a series of cubes that are beside each other and I
I have a SurfaceView which is currently drawing a series of Bitmaps. These bitmaps
i am making a highchart drawing using dynamic function, it is not at all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.