--Code Change

-Change Sequence Preview to PREVIEW_SIZE (128)
This commit is contained in:
Seth Troisi
2022-02-12 18:51:42 -08:00
parent ee7ca7065e
commit 0fc2d3107e
3 changed files with 11 additions and 11 deletions

View File

@ -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.