changing pixmaps within an image

BlitzMax Forums/BlitzMax Programming/changing pixmaps within an image

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.

looks like it does do some memory stuff...
if seqs[] = graphicsSeq then it returns the already created frame.
if different, it creates a frame from the pixmap data.
Wish it could be quicker though.

	Method Frame:TImageFrame( index )
		If seqs[index]=GraphicsSeq Return frames[index]
		frames[index]=_max2dDriver.CreateFrameFromPixmap( Lock(index,True,False),flags )
		If frames[index] seqs[index]=GraphicsSeq Else seqs[index]=0
		Return frames[index]
	End Method