Draw text with font into image, and save it to SD card

Problems with Canvas, OpenGL, etc...

Draw text with font into image, and save it to SD card

Postby tr4788 » Tue Oct 18, 2011 3:02 am

First, sorry cause i tried to search any thread about this problem but cant find anyone.

Here is my idea:
- I have a high resulotion image put in asset. (like 1400x900)
- I have some text in string.xml
- I want to draw text in string.xml into that high resulotion image without open that image. I think that task will run in another thread (task).
- After that, ill save image (already have text and full size) into sd card (or convert it to pdf before save)

I found some solution, like use canvas and getDrawingCache().compress(), but the result is not in full size. Result image in device size.

Thanks for your help :)
tr4788
Freshman
Freshman
 
Posts: 3
Joined: Tue Oct 18, 2011 2:44 am

Top

Re: Draw text with font into image, and save it to SD card

Postby vishal.trivedi » Wed Nov 30, 2011 5:29 am

Hello I wish to do something similar have you found the solution.
What I wish to do is create a custom image that may include an image some text may a b a couple of images more and I want to convert this all in an Image again I believe i will have to use some ndk like openCV for the same not quite sure if this can be done using android's graphics api....

Please let me know..
@ er.vishal.trivedi88@gmail.com


Thanks for Help....
vishal.trivedi
Junior Developer
Junior Developer
 
Posts: 16
Joined: Wed Sep 28, 2011 4:21 am

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: Google [Bot] and 2 guests