Thin white lines being added when cropping an image (Objective-C OSX)
问题 I am cutting up a large image and saving it into many different images. I first implemented this in iOS and it is working fine, but when I try and port the code to OSX , a thin white line (1 pixel) appears on the top and right of the image. The line is not pure white, or solid (see sample below). Here is the iOS code to make one sub-image, that works like a champ: -(void)testMethod:(int)page forRect:(CGRect)rect{ NSString *filePath = @"imageName"; NSData *data = [HeavyResourceManager