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
qxbmhandler.cpp File Reference

(5157ce7c59b704bd080908f24c6ccdf7cb585eeb)

#include <qplatformdefs.h>
#include "private/qxbmhandler_p.h"
#include <qimage.h>
#include <qiodevice.h>
#include <qloggingcategory.h>
#include <qvariant.h>
#include <private/qtools_p.h>
#include <private/qimage_p.h>
#include <cstdio>
#include <stdio.h>
Include dependency graph for qxbmhandler.cpp:

Go to the source code of this file.

Functions

static int hex2byte (char *p)
static bool read_xbm_header (QIODevice *device, int &w, int &h)
static bool read_xbm_body (QIODevice *device, int w, int h, QImage *outImage)
static bool read_xbm_image (QIODevice *device, QImage *outImage)
static bool write_xbm_image (const QImage &sourceImage, QIODevice *device, const QString &fileName)

Function Documentation

◆ hex2byte()

int hex2byte ( char * p)
inlinestatic

Definition at line 29 of file qxbmhandler.cpp.

Referenced by read_xbm_body().

Here is the caller graph for this function:

◆ read_xbm_body()

bool read_xbm_body ( QIODevice * device,
int w,
int h,
QImage * outImage )
static

Definition at line 98 of file qxbmhandler.cpp.

References hex2byte().

Here is the call graph for this function:

◆ read_xbm_header()

bool read_xbm_header ( QIODevice * device,
int & w,
int & h )
static

Definition at line 34 of file qxbmhandler.cpp.

Referenced by read_xbm_image().

Here is the caller graph for this function:

◆ read_xbm_image()

bool read_xbm_image ( QIODevice * device,
QImage * outImage )
static

Definition at line 154 of file qxbmhandler.cpp.

References read_xbm_header().

Here is the call graph for this function:

◆ write_xbm_image()

bool write_xbm_image ( const QImage & sourceImage,
QIODevice * device,
const QString & fileName )
static

Definition at line 162 of file qxbmhandler.cpp.