Re: [Gnome-print] RGBA & DPI



On 8 Apr 2000, Miguel de Icaza wrote:

> 
> > Just checked, but gnome_print_rgbaimage (...) is still missing from API.
> > It SHOULD be there, even if printing only RGB.
> > 
> > If nobody has better idea, I can implement it temporarily as:
> 
> Please, can you add this method, and add implementations of it to the
> drivers you know how to handle? 
> 
> (The Print Preview driver should be the one that can better support it
> for now, the rest might needs some copying action)
> 
> I am going to take care of the restructuring later next week (required
> to bring the GIMP drivers in, and having a real text-only feature
> supported).

Hmm... seems that gnome site is down today :-(

> > 2. Applications need to know preferred DPI values for printers to
> > implement special (gradient, fractal) fill with optimal resolution. The
> > RGBA rendering for PostScript should also use it.
> 
> How do you suggest we do this?

I have thought about hinting. Then it can be extended almost arbitrarily,
without breaking binary compatibility.

hint = gnome_printxxx_get_hint (object, "PreferredDPI")

Also there are several other candidates for hints:

PreferredDPIMonochrome - for real monochrome images
ClearColors - i.e. colors which do not degrade text quality

etc.

Probably this should go to gnome_printer_profile. But then the profile
should be referred from print context also, to allow real printing code to
use it.

Regards,
Lauris







[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]