To fix that in Delphi it should look as follows:

Code:
if (image.format.palette and screen_.format.palette) = screen_.format.palette then
You can and something that large, but you still have to compare it to something. The and gives you back a joined version of the two, then adding the = makes it a true/false comparason for the if statement. I'm not sure that screen_.format.palette belongs on the right hand side of the equal, but it at least gets the idea across.