Lines Matching refs:palette
519 c->r = _this->palette[c->index].r;
520 c->g = _this->palette[c->index].g;
521 c->b = _this->palette[c->index].b;
760 if (pim->inherited.palette)
762 (png_colorp)pim->inherited.palette,
998 If \c palette is \c HPGS_TRUE the image uses and indexed palette
1001 If \c palette is \c HPGS_FALSE the folowing depth are supported:
1012 int depth, hpgs_bool palette,
1019 if (palette)
1043 if (do_rop3 && !palette)
1051 if (palette)
1058 ret->inherited.palette =
1091 ret->inherited.palette = 0;
1097 (palette && (!ret->inherited.palette || !ret->inherited.palette_idx)))
1102 if (ret->inherited.palette)
1103 free(ret->inherited.palette);
1213 if (_this->palette) free(_this->palette);
1223 if (!image->palette) return 0;
1250 // palette overflow.
1262 image->palette[image->palette_ncolors].r = c->r;
1263 image->palette[image->palette_ncolors].g = c->g;
1264 image->palette[image->palette_ncolors].b = c->b;
1280 /*! Sets the palette to an indexed image.
1287 if (!image->palette)
1288 return hpgs_set_error(hpgs_i18n("Try to set a palette to a non-indexed image."));
1291 return hpgs_set_error(hpgs_i18n("Invalid number %d of palette colors."),np);
1293 memmove(image->palette,p,sizeof(hpgs_palette_color)*np);