Easiest way here is just to write a loop:
If the point in the 2nd image isn't blank (0 , or whatever your background color might be on that image), then make that point blank on the first image.
Same way for a tolerance level. Just change that <> 0 to the color you want, or the color range you want.
IF POINT(x,y) >= _RGBA32(100,100,100,0) _ANDALSO POINT(x,y) <= _RGBA32(100,100,100,255)....
Code: (Select All)
_Source image2
_Dest image1
_DontBlend 'so 0 will change and update the image rather than blend to nothing
FOR x = 0 to _width(image2)
FOR y = 0 to _height(image2)
IF POINT(x,y) <> 0 THEN PSET(x2 + x, y2 + y), 0 'make transparent
NEXT
NEXTIf the point in the 2nd image isn't blank (0 , or whatever your background color might be on that image), then make that point blank on the first image.
Same way for a tolerance level. Just change that <> 0 to the color you want, or the color range you want.
IF POINT(x,y) >= _RGBA32(100,100,100,0) _ANDALSO POINT(x,y) <= _RGBA32(100,100,100,255)....

