--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Return this image as an IndexedColor image, creating a copy if necessary. <tt>colors</tt> indicates the maximum number of palette colors to use, and <tt>dither</tt> controls whether dithering is used.
full_name: GD2::Image#to_indexed_color
is_singleton: false
name: to_indexed_color
params: (colors = MAX_COLORS, dither = true)
visibility: public
