Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qohospixelmapconversions.cpp File Reference

(da8644edeafb521a5b6e0108182523d2d9094cbb)

#include <qohospixelmapconversions.h>
#include "qohosdisplayinfo.h"
#include <QtCore/private/qohoslogger_p.h>
#include <QtCore/qspan.h>
#include <QtCore/qsysinfo.h>
#include <QtGui/private/qohosimageconversions_p.h>
#include <cmath>
#include <cstring>
#include <qarkui/qarkuiutils.h>
Include dependency graph for qohospixelmapconversions.cpp:

Go to the source code of this file.

Classes

struct  QT_BEGIN_NAMESPACE::QOhosPixelMapInfo

Namespaces

namespace  QT_BEGIN_NAMESPACE
 Combined button and popup list for selecting options.

Functions

QOhosPixelMapInfo QT_BEGIN_NAMESPACE::getPixelMapInfo (::OH_PixelmapNative *pixelMap)
void QT_BEGIN_NAMESPACE::readPixelMapData (::OH_PixelmapNative *pixelMap, QSpan< std::uint8_t > output)
void QT_BEGIN_NAMESPACE::readPixelMapDataAsArgb (::OH_PixelmapNative *pixelMap, QSpan< std::uint8_t > output)
void readPixelMapDataAsRgba (::OH_PixelmapNative *pixelMap, QSpan< std::uint8_t > output)
QImage createQImageFromNativePixelMap (::OH_PixelmapNative *pixelMap)
static double getPrimaryDisplayPixelDensity (QtOhos::JsState &jsState)
QNapi::Object makeDisplayDensityScaledJsPixelMapFromQImage (QtOhos::JsState &jsState, const QImage &image)
static QImage convertToMonochromeIconImage (const QImage &sourceImage, bool useWhite)
std::optional< QNapi::ObjectcreateDisplayDensityScaledJsMonochromePixelMapFromIconImage (QtOhos::JsState &jsState, const QImage &iconImage, bool isWhiteIcon)

Function Documentation

◆ convertToMonochromeIconImage()

QImage convertToMonochromeIconImage ( const QImage & sourceImage,
bool useWhite )
static

Definition at line 224 of file qohospixelmapconversions.cpp.

◆ createDisplayDensityScaledJsMonochromePixelMapFromIconImage()

std::optional< QNapi::Object > createDisplayDensityScaledJsMonochromePixelMapFromIconImage ( QtOhos::JsState & jsState,
const QImage & iconImage,
bool isWhiteIcon )

Definition at line 242 of file qohospixelmapconversions.cpp.

◆ createQImageFromNativePixelMap()

QImage createQImageFromNativePixelMap ( ::OH_PixelmapNative * pixelMap)

Definition at line 106 of file qohospixelmapconversions.cpp.

◆ getPrimaryDisplayPixelDensity()

double getPrimaryDisplayPixelDensity ( QtOhos::JsState & jsState)
static

Definition at line 178 of file qohospixelmapconversions.cpp.

Referenced by makeDisplayDensityScaledJsPixelMapFromQImage().

Here is the caller graph for this function:

◆ makeDisplayDensityScaledJsPixelMapFromQImage()

QNapi::Object makeDisplayDensityScaledJsPixelMapFromQImage ( QtOhos::JsState & jsState,
const QImage & image )

Definition at line 196 of file qohospixelmapconversions.cpp.

References getPrimaryDisplayPixelDensity().

Here is the call graph for this function:

◆ readPixelMapDataAsRgba()

void readPixelMapDataAsRgba ( ::OH_PixelmapNative * pixelMap,
QSpan< std::uint8_t > output )

Definition at line 86 of file qohospixelmapconversions.cpp.