Helppiä löytyy, kun menet ja suoritat "imgex.exe":n komentorivin kautta syöttämällä sille -? tai -help, eli näin:
>imgex -?
Ja näin lyhyesti ja ytimekkäästi esimerkit esille ja paketti liitteeksi:
Code: Select all
thisispng$ = "THIS IS PNG!"
tw=TextWidth(thisispng)
th=TextHeight(thisispng)
temp = MakeImage(tw,th)
DrawToImage temp
Color cbMagenta
Box 0,0,tw,th
Color cbBlack
Text 0,0,thisispng
DrawToScreen
ResizeImage temp,tw*2,tw
SaveImage temp,"test.bmp"
Execute Chr(34)+"imgex.exe"+Chr(34)+"-png test.bmp 9"
DeleteImage temp
Wait 1500
png = LoadImage("test.png")
DrawImage png,100,10
DrawScreen()
WaitKey
thisisjpg$ = "THIS IS JPG!"
tw=TextWidth(thisisjpg)
th=TextHeight(thisisjpg)
temp = MakeImage(tw,th)
DrawToImage temp
Color cbMagenta
Box 0,0,tw,th
Color cbBlack
Text 0,0,thisisjpg
DrawToScreen
ResizeImage temp,tw*2,tw
SaveImage temp,"test.bmp"
Execute Chr(34)+"imgex.exe"+Chr(34)+"-jpg test.bmp 75"
DeleteImage temp
Wait 1500
jpg = LoadImage("test.jpg")
DrawImage jpg,100,10
DrawScreen()
WaitKey