[R-SIG-Mac] sizing of quartz

[Ricardo Rodriguez] Your XEN ICT Team webmaster at xen.net
Mon Apr 7 00:09:29 CEST 2008


Demitri Muna wrote:
> # Allow pixel measurements in determining the size of a new window.
> quartz2 = function (w = 360, h = 360) {
>
>     px2in = 5/360 # pixels to inches
>     quartz(width = w * px2in, height = h * px2in)
>     
> }
>

Thanks Demitri. It easy to understand and to use. Even though I think it 
only applies to 72dpi graphical devices, doesn't it?

As you said: the point for you are proportions, so it is not of key 
importance if you are working with 72 or any other resolution display 
device.

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your XEN ICT Team



More information about the R-SIG-Mac mailing list