i have an image with god quality even when i view it in preview and zoom its gud and not pixelate.
i have create an custom view class derived from NSView, to draw text above and below the image. and resize the image
inside the custom view class in -drawRect method, i draw the text and image.
with help of NSMutableAttributedString drawinRect and NSImage drawInRect methods.
than get final image like this.
OffscreenView *view = [[OffscreenView alloc] initWithImage:myimage];
NSRect rect = [view bounds];
NSData *data = [view dataWithPDFInsideRect:rect];
NSImage *image_bar = [[NSImage alloc] initWithData:data];
buts this image quality is very badges compare to original image i pass to view.
please help me to get god quality image here.
modified 17-Jan-17 1:09am.