blob: c738b4523d3a7d49b1d9768f2a52436860651b4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#pragma once
#include <mbgl/util/image.hpp>
#include <CoreGraphics/CGImage.h>
// Creates a CGImage from a PremultipliedImage, taking over the memory ownership.
CGImageRef CGImageFromMGLPremultipliedImage(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);
|