0

I am trying to write text on an image and then save it to images.

I have tried first answer of

Add text to image in android programmatically

and

first answer of

Generate a image with custom text in Android

I also tried adding text to relative layout, but I could not get it working.

using first two answer I was able to save image to gallery, but the saved images are blurred(no clear). is there any other technique to save image? or can I improve anything?

Community
  • 1
  • 1
best wishes
  • 4,426
  • 1
  • 30
  • 49

1 Answers1

2

Quality of bitmap(image) is maintained specially with this:

public boolean compress (Bitmap.CompressFormat format, int quality, OutputStream stream)

here :

quality Hint to the compressor, 0-100. 0 meaning compress for small size, 100 meaning compress for max quality. Some formats, like PNG which is lossless, will ignore the quality setting

Marsad
  • 731
  • 1
  • 9
  • 32
Androider
  • 3,773
  • 2
  • 12
  • 24