tags:

views:

56

answers:

2

Hello Guys,

is anyone familiar with an article/sample showing how to create a png image from text in iPhone.

Thanks for all your help!

+1  A: 

It's covered in one of the first lectures in this term of Stanford's free iPhone programming course. There's a video and PDF notes.

Basically, you can create a UIImage and use its graphics context to draw into it, then save a PNG representation of the image.

Jeff Kelley
+1  A: 

How to save a view as ana image:

 UIGraphicsBeginImageContext(myView.bounds.size);
[myView.layer renderInContext:UIGraphicsGetCurrentContext()];
viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
Corey Floyd