Nope. Shraddha is creating a CGBitmapContext and draws into it. That
is fine.
Shraddha, did you check the heighton the sim and device? I mean h.
CGContextShowTextAtPoint(context, 4, 130, text, strlen(text));
could go wrong, if the image is smaller than 130 pixels.
Is text non-NULL?
I use NSS
On May 18, 2009, at 11:43 PM, Shraddha Karwan wrote:
CGContextSetRGBFillColor(context, 255, 255, 255, 1);
It may not be related to what is going wrong, but Quartz always uses
normalized colors when specifying components, so this should really be
1.0, 1.0, 1.0 instead of 255, 255, 255. Qua
Is this just a function you wrote? I'm guessing that's the problem.
All drawing on iPhone should be done in the drawRect: method (declared
in UIView.h). To put text in an image, you should either add another
view on top of the image (a UILabel perhaps) or subclass UIImageView
and add your t