USM Image processing on android

USM Image processing on android

The Unsharp Mask filter sharpens edges of the elements without increasing noise or blemish. You can refer to GIMP doc to know how does an unsharp mask works. As my understanding, for each pixel = original + (original – blur) In this example we will use the blurred image to obtain the USM image....
0
Custom Dialog with data passing using bundle

Custom Dialog with data passing using bundle

This example will explain how a custom dialog is create in onCreateDialog(). The text in the EditText will be passed to the custom dialog via a bundle in onPrepareDialog(int, Dialog, Bundle). If you use showDialog(int), the activity will call onCreateDialog() method the first time, and hang onto it...
0
Image Processing in Android Part II

Image Processing in Android Part II

This example will explain how to apply blur effect on bitmap. Lets try to do this our self without using any API. This can be done using Convolution Matrix according to the Image Processing example explained in previous post. In this example, we will use Gaussian matrix which is used as the 7 x 7 kernal...
0
Dismiss Custom dialog in android

Dismiss Custom dialog in android

This example will explain how a basic custom dialog, it can be dismissed by buttons. We will show you how you can cancel by system BACK key and touching outside dialog. By calling setCancelable(boolean) and setCanceledOnTouchOutside(boolean) we can set whether this dialog is cancelable with the BACK...
0
Custom ListView in a Dialog in android

Custom ListView in a Dialog in android

This example will explain how you can display custom listview in a dialogbox in android. Algorithm: 1.) Create a new project by File-> New -> Android Project name it CustomListViewDialog. 2.) Write following into main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout...
0
JPEG File Chooser

JPEG File Chooser

This example will explain how you can design jpeg image file chooser in android. Algorithm: 1.) Create a new project by File-> New -> Android Project name it JPEGFileChooser. 2.) Write following into main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout...
0
JPEG Image processing in android

JPEG Image processing in android

This example will explain how can you process an open jpeg image in android. Algorithm: 1.) Create a new project by File-> New -> Android Project name it ImageProcessingExample. 2.) Write following into main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout...
0
Creating custom file explorer dialog in android

Creating custom file explorer dialog in android

This example will explain how to implement custom file explorer dialog in android. Algorithm: 1.) Create a new project by File-> New -> Android Project name it CustomFileExplorerDialog. 2.) Write following into main.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout...
0
Drawing Arc in canvas view

Drawing Arc in canvas view

This example will explain how to draw arc in canvas view. Algorithm: 1.) Create a new project by File-> New -> Android Project name it ArcDrawingExample. 2.) Write following into main.xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" ...
0
Round Rect example in android

Round Rect example in android

This example will explain how to draw rounded rectangle in canvas view. Algorithm: 1.) Create a new project by File-> New -> Android Project name it DrawRoundRectExample. 2.) Write following into main.xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" ...
0
Proudly designed by Theme Junkie.