I have been able to store multi-images in a single .png but I can't find a way to get a sub image out to draw.
grabpixmap seem to be the right command to select a sub image that I want to draw. Then I want to draw the sub image to a specific place. The followinf code get the muti-images loaded:
Local image:timage
Local x,y
Global pixmap:TPixmap
Graphics 800,600
image=LoadImage(LoadPixmapPNG("cimage.png"))
DrawImage image,0,0
Now what do I do to get and draw a sub image from this load to a specific location on the screen
grabpixmap seem to be the right command to select a sub image that I want to draw. Then I want to draw the sub image to a specific place. The followinf code get the muti-images loaded:
Local image:timage
Local x,y
Global pixmap:TPixmap
Graphics 800,600
image=LoadImage(LoadPixmapPNG("cimage.png"))
DrawImage image,0,0
Now what do I do to get and draw a sub image from this load to a specific location on the screen