Home | History | Annotate | Download | only in cg

Lines Matching refs:get

76         CFDataAppendBytes(data.get(), buffer, static_cast<CFIndex>(bytesRead));
79 RetainPtr<CGDataProviderRef> dataProvider(AdoptCF, CGDataProviderCreateWithCFData(data.get()));
80 return RetainPtr<CGImageRef>(AdoptCF, CGImageCreateWithPNGDataProvider(dataProvider.get(), 0, false, kCGRenderingIntentDefault));
97 CGContextDrawImage(baseContext.get(), CGRectMake(0, 0, width, height), baseImage);
102 CGContextDrawImage(context.get(), CGRectMake(0, 0, width, height), testImage);
151 diffImage.adoptCF(CGImageCreate(width, height, 8, 8, width, diffColorspace, 0, provider.get(), 0, false, kCGRenderingIntentDefault));
217 if ((CGImageGetWidth(actualImage.get()) == CGImageGetWidth(baselineImage.get())) && (CGImageGetHeight(actualImage.get()) == CGImageGetHeight(baselineImage.get())) && (imageHasAlpha(actualImage.get()) == imageHasAlpha(baselineImage.get()))) {
218 diffImage = createDifferenceImage(actualImage.get(), baselineImage.get(), difference); // difference is passed by reference
231 RetainPtr<CGImageDestinationRef> imageDest(AdoptCF, CGImageDestinationCreateWithData(imageData.get(), kUTTypePNG, 1, 0));
232 CGImageDestinationAddImage(imageDest.get(), diffImage.get(), 0);
233 CGImageDestinationFinalize(imageDest.get());
234 printf("Content-Length: %lu\n", CFDataGetLength(imageData.get()));
235 fwrite(CFDataGetBytePtr(imageData.get()), 1, CFDataGetLength(imageData.get()), stdout);