LCD Orientation and Co-ordinates

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • LCD Orientation and Co-ordinates

    Hi,
    i have LCD of size 320x240. I have window of size 320x100 located at (0,140). If i change orientation of LCD by 90 degress, how i make these co-ordinates proportionate with this new orientation ?

    Please provide example code if you have any!
  • Hi,

    Unfortunately, emWin doesn't do this on its own. You might want to use WM_SetWindowPos(). With this function you can re-position and re-size the window.

    Regards,
    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.