New function: Single Surface Drawing.

BlitzMax Forums/BlitzMax Programming/New function: Single Surface Drawing.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

tonyg, does this work for you (you should see 16 coloured blocks)?...
img$ = String(getenv_("BMXPath")) + "\samples\birdie\games\tiledrop\media\blocks.png"
 
Graphics 640,480,0

Local blob:TAnimImage = TAnimImage.Load(img$, 32, 32, 0, 16, FILTEREDIMAGE)

For Local b=0 To 15
	blob.Draw(5 + (b * 40), 200, 30, 30, b)
Next

Flip

WaitKey()
End