am needing a border around a UIImage. The UIImage is added to a PDF file. Here is the code for drawing the image currently.
Any suggestions for how I can do this? I know how to do it using CALayers with a UIImageView, but not sure here since I don't have the view.
Code:
- (void) drawImage2
{
UIImage * demoImage = self.imageCopy;
NSData *jpegData = UIImageJPEGRepresentation(demoImage, 0.80);
CGDataProviderRef dp = CGDataProviderCreateWithCFData(( CFDataRef)jpegData);
CGImageRef cgImage = CGImageCreateWithJPEGDataProvider(dp, NULL, true, kCGRenderingIntentDefault);
[[UIImage imageWithCGImage:cgImage] drawInRect:CGRectMake(513, 314, 135, 135)];
}