Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GDI+ Image Sizes
#1
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
Code:
Copy      Help
#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"


Attached Files Image(s)
   


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)