As per the subject.
Also, the documentation for bitmap2 says "The source color palette must be a subset of the destination color palette.", whereas the exception says that the source must not use a color palette. Some explanation of this discrepancy, and what the exception means is needed.
Is it possible to generate the documentation from the source code in such a way that exceptions like this aren't missed?