Developing Drawing App In Microsoft PowerApps

Before reading this article, please go through the articles, mentioned below.

In PowerApps, we can develop the drawing app, using Pen Input Control.

Pen Input Control

Pen Input Control is used to draw, erase, and highlight the areas in the image. It's an input interface to get the user's handwriting and convert it into images.

Here, we are developing the drawing app, using Pen Input Control, and saving those drawing images to the image gallery;  we can also delete them from the image gallery.

Follow the steps, mentioned below to develop the drawing app in PowerApps.

Step 1. Log into PowerApps.

After downloading PowerApps from the Windows store, here we need a Microsoft-related organization’s Office 365 ID (MSDN, Microsoft, Skype, Office 365, etc.) to login in.

PowerApps

Step 2. Create a New App in PowerApp.

After login, we can see the dashboard. Subsequently, we click on the New button.

New button

Step 3. Choose the Blank app.

Blank app

Step 4. Designing the app.

Now, let's start designing the app. On the left side, we can see the individual screens to add our data. On the right side, we see the list of layouts. At the top, we see the formula bar. Subsequently, you will see the Properties of the screen, which you will select. On the right side, we will see the Add DataSource to add the external DataSource.

Designing the app

Step 5. Drag and Drop the Pen Input Control.

  1. Go to the Insert menu. Afterwards, control and drag the Pen Input tool.
    Drag and Drop
  2. Drop the Pen Input tool on the screen.
    Pen Input
  3. Rename the MyPen.
    MyPen

Step 7. Drag and Drop the Button Control Tool.

Button control is used to save the drawing to the image gallery.

  1. Go to the Insert menu and drag the Button control.
    Button control
  2. Drag the Button control to the screen.
  3. Place it on the screen and change the name to save it.
    Save
  4. Add the Coding.
  5. Now, select the Button control and add the coding to the OnSelect event.
  6. Coding.
    Collect(
        ImageSave,
        { SketchMyPen.Image }
    )
    
    Collect

Step 7. Drag and drop the Image Gallery Control Tool.

The Image Gallery control is used to save the drawing.

  1. Go to the Insert menu and drag the vertical image-only control.
    Gallery Control Tool
  2. Drag the Image Gallery control to the screen.
     Image Gallery control
  3. Add the Coding.
  4. First, select the image and add the ImageSave to the Items event.
    ImageSave  

Select the individual image and add the following coding to the OnSelect event

Coding

Remove (ImageSave, ThisItem)

Remove

Step 8. Run the app.

Run app

Output 1. Main Screen.

Main screen

Output 2. Sketch it and tap save.

Sketch

Output 3. It is saved into the ImageGallery.

 ImageGallery

Output 4. Now, sketch and save.

Sketch and save

Output 5. is saved.

Saved

Output 6. Select and remove it.

Remove it

Output 7. Removed.

Removed

Conclusion

I hope you understand how to develop the drawing app in Microsoft PowerApps and how to run it.


Similar Articles