31
Graphics / qimage to sf::image conversion
« on: May 25, 2011, 10:34:35 pm »
@Lokk
With your method i have to include the whole qt-opengl-library...
instead i convert using qimage.convertToFormat(QImage::Format_ARGB32);
like laurent said...
works like a charm <3
much thanks to both of you
With your method i have to include the whole qt-opengl-library...
instead i convert using qimage.convertToFormat(QImage::Format_ARGB32);
like laurent said...
works like a charm <3
Code: [Select]
qimage.convertToFormat(QImage::Format_ARGB32);
image.LoadFromPixels(qimage.width(), qimage.height(), reinterpret_cast<const sf::Uint8*>(qimage.bits()));
much thanks to both of you