Wednesday, April 8, 2015

Android - Get Image from Canvas

Overview:  We can create an image that canvas draw in view.

1. Draw Something: First, we going to draw some shapes such as a circle by using canvas.



Now Launching Application.


2.Creating imageNow we going to create an image from draw view. Let see the following snippet




Above Snippet, we have created a bitmap with required image width and height. After that draw bitmap by using canvas. At the end, we draw a circle on canvas and return createBitmap object.





















Share:

Youtube

We're Social

Flutter - Expendable list with ExpansionTile and ExpansionPanel

In mobile application, if you want to show items in a list with expandable feature. The expandable view is a way that show items in a vertic...