Hi !
i don't understand why in this case readpixel return a negative value, not an integer. Could you help me please ? I just want read the pixel color at x,y and compare it to 255,0,255 !
Thanks !
i don't understand why in this case readpixel return a negative value, not an integer. Could you help me please ? I just want read the pixel color at x,y and compare it to 255,0,255 !
Thanks !
load 8 or 24 bits png image as mask Mask = LoadImage ("masque.png") ... col = ReadPixel (x,y, ImageBuffer(Mask) (rgb = 255,0,255) MaskColor = 255 Or (0 Shl 8) Or (255 Shl 16) if MaskColor = col then ;collision end if ...