I would like to create something similar to this question Can I convert an image into a grid of dots? but I cannot find any answer for my problem. The basic idea is to load a picture from the phone and apply this grid of dots. I would appreciate any suggestions to this.
Share
As others may suggest, your problem can also be solved using a fragment shader in OpenGL Shading Language (GLSL). GLSL might require painful setup.
Here is my solution using Android Renderscript (a lot like GLSL, but specifically designed for Android. It isn’t used much). First, setup the Renderscript > Hello Compute sample from inside the official Android SDK samples. Next, replace mono.rs with the following:
Inside HelloCompute.java, replace createScript() with the following:
The end result will look like this

ALTERNATIVE
If you don’t care about having each dot a solid color, you can do the following:
There is a very easy way to do this. You need a
BitmapDrawablefor the picture and aBitmapDrawablefor the overlay tile (lets call itoverlayTile). OnoverlayTile, callNext, combine the two
Drawable‘s into a singleDrawableusing LayerDrawable. You can use the resultingLayerDrawableas src for someImageView, if you wish. Or, you can convert theDrawableto aBitmapand save it to disk.