Resizing a PNG to fit a static picturebox exactly[RESOLVED]
hello boys and girls.
Can anyone lend a hand with resizing a PNG to fit inside a picture box? Ive got the PNG file loaded and it displays it in my picture box but it doesnt do it to fit. I have a maximum available width and height and would ideally like the png file to fit to the largest dimension whilst keeping the aspect ratio.
Anyone know anything about how to do it? Thanks
I can post my code so far if need be its only small but needs the zlib.dll PNG library which i can also attach