0
だけで画像を取得する方法を変更イムをGLImageProcessingの例の一つで
が、アプリのgetは私がこのようiPhone GLImageProcessing
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
NSString *savedImagePath = [documentsDirectory stringByAppendingPathComponent:@"savedImage.png"];
// UIImage *image = image; // imageView is my image from camera
UIImage* img11 = [UIImage imageNamed:@"image1.jpg"];
NSData *imageData = UIImagePNGRepresentation(img11);
[imageData writeToFile:savedImagePath atomically:NO];
NSArray *paths1 = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory1 = [paths1 objectAtIndex:0];
NSString *getImagePath1 = [documentsDirectory1 stringByAppendingPathComponent:@"savedImage.png"];
UIImage *imgGet = [UIImage imageWithContentsOfFile:getImagePath1];
CGImageRef CGImage = imgGet.CGImage;
方法を変更している私を助けてください墜落しかし、以前の方法でした... 。
CGImageRef CGImage = [UIImage imageNamed:[NSString stringWithUTF8String:name]].CGImage;