What are the image creation flags?

BlitzMax Forums/BlitzMax Programming/What are the image creation flags?

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.

The following per frame update code, gives me a crash (and looks plain ugly)
Why can't I just create a dynamic image of the correct format, lock it and update it's pixmap?

		MemCopy(PixmapPixelPtr(tempPixMap),Frame,width*Height*3)	
		
		' Gotta flip it. Damn GDI
		tempPixMap = YFlipPixmap(tempPixMap)	
		
		' Draw it
		tempImage = LoadImage(tempPixMap, DYNAMICIMAGE)
		DrawImage(tempImage, x, y)