Fix Some Profile Images Not Showing As A Square
This commit is contained in:
parent
28358f44f8
commit
217e3f301a
@ -53,7 +53,11 @@ namespace qtc_net_client_2.Forms
|
|||||||
{
|
{
|
||||||
using (var ms = new MemoryStream(pfpRes.Data))
|
using (var ms = new MemoryStream(pfpRes.Data))
|
||||||
{
|
{
|
||||||
pbUserPfp.Image = new Bitmap(ms);
|
Bitmap bmp = new Bitmap(ms);
|
||||||
|
if (bmp.Width != 128 && bmp.Height != 128)
|
||||||
|
bmp.SetResolution(128, 128);
|
||||||
|
|
||||||
|
pbUserPfp.Image = bmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user