+ dev->setparameter(dev, "antialise", "4");
+ if(quantize) {
+ dev->setparameter(dev, "palette", "1");
+ }
+ if(width || height) {
+ dev = gfxdevice_rescale_new(dev, width, height, 0);
+ }
+ for(p=params;p;p=p->next) {
+ dev->setparameter(dev, p->name, p->value);
+ }