In my device i'm trying to extract all images from .ps to separate bmp-file. When input image is 8bit color plane data consists of values likely to be indexes in pallete (but not rgb-encoded value). How can i fetch rgb-color by it's index?