Change the Color Mode

I’d like to programmatically change the color mode from RGB to Indexed. Is this possible?
I seem to be able to get it but not set it.

Welcome @Dan_Beeston! You can change the color mode using the app.command.ChangePixelFormat command:

app.command.ChangePixelFormat{ format="indexed", dithering="none" }

Sorry that some commands are still undocumented (check the bottom of that document).

1 Like