【发布时间】:2012-02-22 09:24:34
【问题描述】:
我正在使用此代码为图形创建图像
UIImage *newImage=[graph imageOfLayer]
NSData *newPNG= UIImageJPEGRepresentation(newImage, 1.0);
NSString *filePath=[NSString stringWithFormat:@"%@/graph.jpg", [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]];
if([newPNG writeToFile:filePath atomically:YES])
NSLog(@"Created new file successfully");
但是我在图像中只得到可见区域(320 * 460),我怎样才能得到带有轴的整个图形图像。 请提供一些代码sn-p,我该如何使用coreplot。
提前致谢...
【问题讨论】: