The principle of palette and the method of using palette in C++Builder environment were introduced in the paper.And an example of inverting the colors of256colors image by modifying palette was presented.This example resolved the problem that the data of pixels were changed when processing palette in C++Builder.