Blitzmax does not work with fixed palette, so you will have to run through all pixels, find the ones with the value you want to change and plot them again. Using the PixmapPixelPtr() command you can get a pointer to the pixmap and then manipulate the pixels directly, which is somewhat faster than using read/writepixels.