Files
MapLibreParticleLab/mapbox-gl-native/platform/darwin/include/mbgl/util/image+MGLAdditions.hpp
2020-12-16 17:26:47 +01:00

13 lines
444 B
C++

#pragma once
#include <mbgl/util/image.hpp>
#include <CoreGraphics/CGImage.h>
// 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);