An image and texture viewer for tga, png, apng, exr, dds, pvr, ktx, ktx2, astc, pkm, qoi, gif, hdr, jpg, tif, ico, webp, and bmp files. Uses Dear ImGui, OpenGL, and Tacent. Useful for game devs as it displays information like the presence of an alpha channel and querying specific pixels for their colour.
ISC License
344
stars
33
forks
source link
Images are incorrectly centered at some window sizes #40
Small images appear blurry at some window sizes because the image centering logic at TacentView.cpp line 975 is incorrect. This can be fixed by replacing the block with the following:
float offsetW = tMath::tRound((draww - w) / 2.0f);
left += offsetW;
right = left+w;
float offsetH = tMath::tRound((drawh - h) / 2.0f);
bottom += offsetH;
top = bottom+h;
Small images appear blurry at some window sizes because the image centering logic at TacentView.cpp line 975 is incorrect. This can be fixed by replacing the block with the following:
Blurry, incorrect: Clear, correct: