mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-07 00:34:50 -04:00
--Code Change
-Change Sequence Preview to PREVIEW_SIZE (128)
This commit is contained in:
@ -47,7 +47,7 @@ public:
|
||||
/// <param name="height">The height of the image in pixels</param>
|
||||
void SetImage(vector<byte>& v, uint width, uint height)
|
||||
{
|
||||
constexpr auto size = 64;
|
||||
constexpr auto size = PREVIEW_SIZE;
|
||||
m_Image = QImage(width, height, QImage::Format_RGBA8888);
|
||||
memcpy(m_Image.scanLine(0), v.data(), SizeOf(v));//Memcpy the data in.
|
||||
m_Pixmap = QPixmap::fromImage(m_Image).scaled(QSize(size, size), Qt::IgnoreAspectRatio, Qt::SmoothTransformation);//Create a QPixmap out of the QImage, scaled to size.
|
||||
|
Reference in New Issue
Block a user