equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtOpenVG module of the Qt Toolkit. |
7 ** This file is part of the QtOpenVG module of the Qt Toolkit. |
8 ** |
8 ** |
230 } |
230 } |
231 |
231 |
232 // This function works around QImage::bits() making a deep copy if the |
232 // This function works around QImage::bits() making a deep copy if the |
233 // QImage is not const. We force it to be const and then get the bits. |
233 // QImage is not const. We force it to be const and then get the bits. |
234 // XXX: Should add a QImage::constBits() in the future to replace this. |
234 // XXX: Should add a QImage::constBits() in the future to replace this. |
235 static inline const uchar *qt_vg_imageBits(const QImage& image) |
235 const uchar *qt_vg_imageBits(const QImage& image) |
236 { |
236 { |
237 return image.bits(); |
237 return image.bits(); |
238 } |
238 } |
239 |
239 |
240 VGImage QVGPixmapData::toVGImage() |
240 VGImage QVGPixmapData::toVGImage() |