BB bugged or just the command ?

Blitz3D Forums/Blitz3D Beginners Area/BB bugged or just the command ?

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.

Blitz translates the pixels from 8 to 16 bit at load time so you do not have to worry about palettes at all.

You will need to code your own compare image command which would look something like:

Function IdenticalImages(i1,i2)

	w=ImageWidth(i1)
	h=ImageHeight(i1)
	
	If w<>ImageWidth(i2) Return False
	If h<>ImageHeight(i2) Return False

	b1=ImageBuffer(i1)
	b2=ImageBuffer(i2)
	
	For y=0 To h-1
		For x=0 To w-1
			If ReadPixel(x,y,b1)<>ReadPixel(x,y,b2) Return False
		Next
	Next

	Return True

End Function