The previous exercise " Blur bitmap using Convolution ". By changing the matrix of Convolution class, we can use it to sharpen bit...
Your andriod Apps ZOne
The previous exercise " Blur bitmap using Convolution ". By changing the matrix of Convolution class, we can use it to sharpen bit...
The previous exercise blur bitmap by averaging pixels with surrounding pixels . In this exercise, we are going to implement a class of Convo...
This exercise generate a blur bitmap by changing each pixel to the average of its surrounding 5x5 pixel. package com.example.androiddrawbitm...
package com.example.androiddrawbitmap; import java.io.FileNotFoundException; import android.net.Uri; import android.os.Bundle; import androi...
To convert Bitmap to gray-scale, we can apply ColorMatrix with the following matrix: //Array to generate Gray-Scale image float[] Gray...
The exercise " Set the rotation on a color axis of Bitmap with ColorMatrix " create rotated ColorMatrix for one color only, not al...
Example of using ColorMatrix.setScale(float rScale, float gScale, float bScale, float aScale). package com.example.androiddrawbitmap; import...
Example to set the rotation on a color axis by the specified values. axis=0 correspond to a rotation around the RED color axis=1 correspond ...
android.graphics.ColorMatrix is a 5x4 matrix for transforming the color+alpha components of a Bitmap. The setSaturation(float sat) method of...
The exercise " Load scaled bitmap " demonstrate a simple and standard method to scale bitmap. Additionally, we can set inDither an...
android.graphics.Color class provide colorToHSV() and HSVToColor() methods to convert between ARGB color and HSV components. Such that we ca...