@@ -14,8 +14,7 @@ Local img1:TImage = Loader("blackbuck.bmp", w, h)
Local img2:TImage = Loader("bmp_24.bmp", w, h)
If Not img1 Or Not img2 Then
- Print "Failed to load image"
- End
+ Throw "Failed to load image"
End If
Local image:Int
@@ -14,8 +14,7 @@ Local img1:TImage = Loader("bali.gif", w, h)
Local img2:TImage = Loader("fractal_tree.gif", w, h)
@@ -14,8 +14,7 @@ Local img1:TImage = Loader("Kickstart11.iff", w, h)
Local img2:TImage = Loader("PLANE02.RGB", w, h)
@@ -14,8 +14,7 @@ Local img1:TImage = Loader("sample-birch-400x300.jpeg", w, h)
Local img2:TImage = Loader("sample-clouds-400x300.jpeg", w, h)
@@ -14,8 +14,7 @@ Local img1:TImage = Loader("marbles.pcx", w, h)
Local img2:TImage = Loader("gmarbles.pcx", w, h)
@@ -14,8 +14,7 @@ Local img1:TImage = Loader("sample-hut-400x300.png", w, h)
Local img2:TImage = Loader("PNG_transparency_demonstration_1.png", w, h)
@@ -14,8 +14,7 @@ Local img1:TImage = Loader("rays2.pnm", w, h)
Local img2:TImage = Loader("snail2.pnm", w, h)
@@ -13,8 +13,7 @@ Local pix:TPixmap = LoadPixmap("kodim23.qoi")
If pix Then
Print pix.width + ", " + pix.height
Else
- Print "Unable to load file"
+ Throw "Unable to load file"
Graphics 1024, 768, 0
@@ -13,8 +13,7 @@ Local pix:TPixmap = LoadPixmap("gh2.rw2")
@@ -14,8 +14,7 @@ Local img1:TImage = Loader("23.svg", w, h)
Local img2:TImage = Loader("drawing.svg", w, h)
@@ -13,8 +13,7 @@ AutoMidHandle(True)
Local img:TImage = LoadImage("earth.tga")
If Not img Then
While Not KeyDown(Key_ESCAPE)
@@ -14,8 +14,7 @@ Local img1:TImage = Loader("3_webp_ll.webp", w, h)
Local img2:TImage = Loader("tree.webp", w, h)