• +351 91 33 888 29
    • clico@clico.pt

    How to rotate images in Powerapps

    How to rotate images in Powerapps

    • Create a New Screen :
      • In your Power App, go to the “Screens” tab.
      • Click on “New Screen” and choose a blank screen template or any other layout that suits your design.
    • In New Screen insert image (Ex.:”image1″)
    • In New screen Insert Icon “Reload” (Ex. “iconrotate”)
    • On New screen property “On Visible”, set it:
      • Set(
            iRotate,
            0
        );
        Set(
            stRotate,
            “ImageRotation.None”
        );
    • On image “image1” property “ImageRotation”, set: 
      • stRotate
    • On icon  “iconrotate” property “OnSelect”, set:
      • If(
            iRotate < 3,
            Set(
                iRotate,
                iRotate + 1
            ),
            Set(
                iRotate,
                0
            )
        );
        Switch(
           iRotate,
           1,
           Set(
              stRotate,
              “rotate90”
           ),
           2,
           Set(
              stRotate,
              “rotate180”
           ),
           3,
           Set(
              stRotate,
              “rotate270”
           ),
           Set(
              stRotate,
              “ImageRotation.None”
           )
        )
    clicopt

    Advertisements
    Show Buttons
    Hide Buttons