Lines Matching refs:rgb
224 static int pdv_setrgbcolor (hpgs_device *_this, const hpgs_color *rgb)
228 pdv->gstate->color = *rgb;
230 pdv->color.r = (unsigned char)(rgb->r*255.0);
231 pdv->color.g = (unsigned char)(rgb->g*255.0);
232 pdv->color.b = (unsigned char)(rgb->b*255.0);
237 pdv->gstate->pattern_color = *rgb;
320 static int pdv_setpatcol(hpgs_device *_this, const hpgs_color *rgb)
324 pdv->gstate->pattern_color = *rgb;
326 pdv->patcol.r = (unsigned char)(rgb->r * 255.0);
327 pdv->patcol.g = (unsigned char)(rgb->g * 255.0);
328 pdv->patcol.b = (unsigned char)(rgb->b * 255.0);