Qt 4.8
Functions | Variables
qpixmapdata_vg.cpp File Reference
#include "qpixmapdata_vg_p.h"
#include "qpaintengine_vg_p.h"
#include <QtGui/private/qdrawhelper_p.h>
#include <QtGui/private/qegl_p.h>
#include "qvg_p.h"
#include "qvgimagepool_p.h"
#include <QBuffer>
#include <QImageReader>
#include <QtGui/private/qimage_p.h>
#include <QtGui/private/qnativeimagehandleprovider_p.h>
#include <QtGui/private/qfont_p.h>

Go to the source code of this file.

Functions

Q_OPENVG_EXPORT VGImage qPixmapToVGImage (const QPixmap &pixmap)
 

Variables

static int qt_vg_pixmap_serial = 0
 

Function Documentation

◆ qPixmapToVGImage()

Q_OPENVG_EXPORT VGImage qPixmapToVGImage ( const QPixmap pixmap)

Definition at line 561 of file qpixmapdata_vg.cpp.

562 {
563  QPixmapData *pd = pixmap.pixmapData();
564  if (!pd)
565  return VG_INVALID_HANDLE; // null QPixmap
566  if (pd->classId() == QPixmapData::OpenVGClass) {
567  QVGPixmapData *vgpd = static_cast<QVGPixmapData *>(pd);
568  if (vgpd->isValid())
569  return vgpd->toVGImage();
570  }
571  return VG_INVALID_HANDLE;
572 }
virtual VGImage toVGImage()
ClassId classId() const
bool isValid() const
QPixmapData * pixmapData() const
Definition: qpixmap.cpp:2277

Variable Documentation

◆ qt_vg_pixmap_serial

int qt_vg_pixmap_serial = 0
static

Definition at line 58 of file qpixmapdata_vg.cpp.

Referenced by QVGPixmapData::updateSerial().