RgbCmap.this

Warning gdk_rgb_cmap_new is deprecated and should not be used in newly-written code. Creates a new GdkRgbCmap structure. The cmap maps color indexes to RGB colors. If n_colors is less than 256, then images containing color values greater than or equal to n_colors will produce undefined results, including possibly segfaults.

  1. this(GdkRgbCmap* gdkRgbCmap)
  2. this(uint[] colors)
    class RgbCmap
    this
    (
    uint[] colors
    )

Parameters

colors uint[]

The colors, represented as 0xRRGGBB integer values.

Throws

ConstructionException GTK+ fails to create the object.

Meta