Saltar para o conteúdo
Consultoria · Automação · Dados · Digital
← Blog

How to rotate images in Powerapps

Easily rotate images in PowerApps with intuitive controls.

  • 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”
         )
      )
Da ideia à solução

Tem um desafio tecnológico ou digital para resolver?

Falamos sobre o contexto, identificamos opções e desenhamos uma abordagem pragmática.

Fale connosco
Show Buttons
Hide Buttons