how to improve image quality on Canvas.drawBitmap while merging two images?
I am using following code to merge 2 different bitmap into 1.
public Bitmap combineImages(Bitmap c, Bitmap s) {
Bitmap cs = null;
int width, height = 0;
width = c.getWidth() + (s.getWidth() / 2);
height = c.getHeight() + (s.getHeight() / 2);
cs = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
Canvas comboImage = new Canvas(cs);
comboImage.drawBitmap(c, 0f, 0f, null);
comboImage.drawBitmap(s, c.getWidth() - (s.getWidth() / 2), c
.getHeight()
- (s.getHeight() / 2), null);
return cs;
}
It working good. But problem is that it make my image BLUR.
Basically my full code is here. My Full Code What I am doing is converting my Bas开发者_StackOverflow中文版e64 String images to Bitmap. What you think this may be issue?
I just want to prevent BLUR to my images...
oh yes, I just make the 3 images of hdpi,mdpi,ldpi "+" image with appropriate resolution. and it works for me.
精彩评论