Home | History | Annotate | Download | only in cg

Lines Matching refs:get

80         CFDataAppendBytes(data.get(), buffer, static_cast<CFIndex>(bytesRead));
83 RetainPtr<CGDataProviderRef> dataProvider(AdoptCF, CGDataProviderCreateWithCFData(data.get()));
84 return RetainPtr<CGImageRef>(AdoptCF, CGImageCreateWithPNGDataProvider(dataProvider.get(), 0, false, kCGRenderingIntentDefault));
101 CGContextDrawImage(baseContext.get(), CGRectMake(0, 0, width, height), baseImage);
106 CGContextDrawImage(context.get(), CGRectMake(0, 0, width, height), testImage);
155 diffImage.adoptCF(CGImageCreate(width, height, 8, 8, width, diffColorspace, 0, provider.get(), 0, false, kCGRenderingIntentDefault));
221 if ((CGImageGetWidth(actualImage.get()) == CGImageGetWidth(baselineImage.get())) && (CGImageGetHeight(actualImage.get()) == CGImageGetHeight(baselineImage.get())) && (imageHasAlpha(actualImage.get()) == imageHasAlpha(baselineImage.get()))) {
222 diffImage = createDifferenceImage(actualImage.get(), baselineImage.get(), difference); // difference is passed by reference
235 RetainPtr<CGImageDestinationRef> imageDest(AdoptCF, CGImageDestinationCreateWithData(imageData.get(), kUTTypePNG, 1, 0));
236 CGImageDestinationAddImage(imageDest.get(), diffImage.get(), 0);
237 CGImageDestinationFinalize(imageDest.get());
238 printf("Content-Length: %lu\n", CFDataGetLength(imageData.get()));
239 fwrite(CFDataGetBytePtr(imageData.get()), 1, CFDataGetLength(imageData.get()), stdout);