Image.setPalette

Set the image palette. This setting set how many levels of color/gray are used.

More...
class Image
setPalette
(
this T
)
(
string palette
)

Parameters

palette string

A string describing the palette to use.

Return Value

Type: auto

This image to aid method chaining.

Detailed Description

Sample Palettes

  • "16" = 16 levels of gray
  • "16/16/16" = 16 levels of RGB

Meta