08-08-2016, 12:02 AM
So I created a .png file that is a 100px by 100px black box and saved it as BOX100.png
Then I used GDIP.GdipDrawImageI to draw that box into an empty GdipGraphics object and save...when I open the file the box is 32px by 32px...odd.
Function Function5
Then I used GDIP.GdipDrawImageI to draw that box into an empty GdipGraphics object and save...when I open the file the box is 32px by 32px...odd.
Function Function5
#compile "__Gdip"
str BOX="$desktop$\BOX100.png"
;create empty destination image
GdipBitmap b.CreateEmpty(100 100) ;;used to draw images and save
GdipGraphics g.FromImage(b) ;;need for GDIP functions
GdipImage im.FromFile(BOX)
GDIP.GdipDrawImageI g im 0 0
if(!b.Save("$desktop$\BOX.png")) end "saving"