YesNoOk
avatar

Basic avatar resizing (Read 1422 times)

Started by Nightwish, October 30, 2004, 22:48:40

0 Members and 1 Guest are viewing this.
#1
Basic avatar resizing |
October 30, 2004, 22:48:40
There is now a way to limit the maximum height of the displayed (not downloaded) avatar. If the picture is bigger than this setting, it will be resized. You can only set the height, but the resizing will of course modify the width aswell to maintain the aspect ratio of the picture.

The 150x150 limit has been raised as well, so bigger avatars will no longer throw an error message, but it will be possible to size them down...

The resizing uses the basic Win32 GDI StretchBitBlt() function, so the quality may not be the best, but it is sufficient for most avatar images.

I'am finishing the code for a new (non-developer) release, so 0.0.9 will be ready pretty soon now.
__
Every program has at least one bug and can be shortened by at least one instruction -- from which, by induction, one can deduce that every program can be reduced to a single instruction that doesn't work.
My SMF-based forum fork