Unique frame sizes

BlitzMax Forums/BlitzMax Programming/Unique frame sizes

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.

You can use PixmapWindow(), something like this.
'Image1 is located at coordinates 0,0 and is 128x96
'Image2 is located at 128,0 and is 32x32

local TempPixmap:TPixmap = LoadPixmap("File.png") 'Load the file
Local Image1:TImage = LoadImage(PixmapWindow(TempPixmap,0,0,128,64)) 'extract the first image
Local Image2:TImage = LoadImage(PixmapWindow(TempPixmap,128,0,32,32)) 'extract the second image

TempPixmap = Null 'Not needed anymore

...Comtinue with the rest of program