am testing the "SaveImage" command but I can't see any saved image when I go to : Documents/AGK/application name/media.
// set window properties
SetWindowTitle( "sprites" )
SetWindowSize( 1024, 768, 0 )
// set display properties
SetVirtualResolution( 1024, 768 )
_White = MakeColor(255,255,255)
_Blue = MakeColor(0,0,175)
_Yellow = MakeColor(175,175,0)
_Green = MakeColor(0,175,0)
_Red = MakeCOlor(175,0,0)
Render()
DrawEllipse(128, 128, 128, 128, _White, _White, 1)
Render()
blue = GetImage(0,0,128,128)
Yellow = GetImage(128,0,128,128)
Green = GetImage(0,128,128,128)
red = GetImage(128,128,128,128)
ClearScreen()
_Sprite(blue, blue, 0,0,100, 0,0,175,255)
_Sprite(yellow, yellow,150,0,100, 175,175,0,255)
_Sprite(green, green, 300,0,100, 0,175,0,255)
_Sprite(red, red, 450,0,100, 175,0,0,255)
SaveImage(blue, "blue.png")
SaveImage(Yellow, "yellow.png")
SaveImage(Green, "green.png")
SaveImage(Red, "red.png")
SetClearColor(75,75,75)
do
print(chr(10)+chr(10)+chr(10)+"Images are Saved in the App directory.")
Sync()
loop
function _Sprite(num, img, x#, y#, size#, Cr, Cg, Cb, Ca)
CreateSprite(num, img)
SetSpritePosition(num, x#, y#)
SetSpriteColor(num, Cr, Cg, Cb, Ca)
setSpriteSize(num, size#, size#)
Endfunction