#pragma once #include #include // Creates a CGImage from a PremultipliedImage, taking over the memory ownership. CGImageRef CGImageCreateWithMGLPremultipliedImage(mbgl::PremultipliedImage&&); // Creates a PremultipliedImage by copying the pixels of the CGImage. // Does not alter the retain count of the supplied CGImage. mbgl::PremultipliedImage MGLPremultipliedImageFromCGImage(CGImageRef);