6#include <private/qcore_mac_p.h>
7#include <private/qcoregraphics_p.h>
9#import <Foundation/Foundation.h>
10#import <CoreGraphics/CoreGraphics.h>
62CGImageRef QImage::toCGImage()
const
70 if (bitmapInfo == kCGImageAlphaNone)
74 auto deleter = [](
void *
image,
const void *, size_t)
81 const size_t bitsPerComponent = 8;
84 const bool shouldInterpolate =
false;
87 this->
bytesPerLine(), colorSpace, bitmapInfo, dataProvider,
88 decode, shouldInterpolate, kCGRenderingIntentDefault);
QColorSpace colorSpace() const
qsizetype bytesPerLine() const
Returns the number of bytes per image scanline.
qsizetype sizeInBytes() const
int width() const
Returns the width of the image.
uchar * bits()
Returns a pointer to the first pixel data.
bool isNull() const
Returns true if it is a null image, otherwise returns false.
int height() const
Returns the height of the image.
QImage() noexcept
Constructs a null image.
Combined button and popup list for selecting options.
QT_USE_NAMESPACE QT_BEGIN_NAMESPACE CGBitmapInfo qt_mac_bitmapInfoForImage(const QImage &image)
constexpr QPixelLayout::BPP bitsPerPixel()