Issue in Touch Screen Orientation & IMAGE_SetPNG function

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

  • Issue in Touch Screen Orientation & IMAGE_SetPNG function

    We are working on STM32F429ZI controller board with STEmwin. Right now we are facing two issues.

    1) By default display is portrait . We want to show images with Landscape mode. So used GUI_SetOrientation(GUI_SWAP_XY | GUI_MIRROR_Y); function and got landscape mode of a LCD. But now touch is misbehaving. We touch some where but Cursor is shown at some difference location. In case of portrait mode, touch works perfectly. How to get touch to work with changed Landscape display ?

    2) Using GUI builder i made one .c file using PNG images. But when i try to compile it gives me an error : no definition for IMAGE_SetPNG.
    I checked this link. Both the files are present but still there is no success. JPEG images works perfectly. How to resolve this issue ?

    The post was edited 1 time, last by amit251291 ().

  • RE: Issue in Touch Screen Orientation & IMAGE_SetPNG function

    amit251291 wrote:

    We are working on STM32F429ZI controller board with STEmwin. Right now we are facing two issues.

    1) By default display is portrait . We want to show images with Landscape mode. So used GUI_SetOrientation(GUI_SWAP_XY | GUI_MIRROR_Y); function and got landscape mode of a LCD. But now touch is misbehaving. We touch some where but Cursor is shown at some difference location. In case of portrait mode, touch works perfectly. How to get touch to work with changed Landscape display ?

    Okay i solved this problem by using TM_EMWIN_Rotate(TM_EMWIN_Rotate_270);


    But issue 2 is still there. Any solution for it ??
  • RE: Issue in Touch Screen Orientation & IMAGE_SetPNG function

    amit251291 wrote:



    2) Using GUI builder i made one .c file using PNG images. But when i try to compile it gives me an error : no definition for IMAGE_SetPNG.
    I checked this link. Both the files are present but still there is no success. JPEG images works perfectly. How to resolve this issue ?
    Solved this issue by downloading PNG library mentioned in User manual.