gnustep-dev
[Top][All Lists]
Advanced

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

Coordinate system


From: Stefan Urbanek
Subject: Coordinate system
Date: Thu, 01 May 2003 11:13:05 -0000

Hi,

I am confused. What is the coordinate system for drawing in gnustep? Is it 
pixels or points? Or is it pixels on screen and points on PostScript output?

I was digging through apple docs, but i was not lucky in finding some 
information about how it should be.
The size of the pixel can vary as today we can have displays with different 
resolutions. GUI should not be screen-resolution dependent.Moreover, gnustep is 
supposed to be WYSIWYG.

I thought that there would be problems with bitmap images, but then i have checked 
NSImage documentation and in -setSize: there is "Sets the width and height of the 
image. aSize should be in units of the base coordinate system." If i get it right, 
then the size is set in points, if base coordinate system is points.

Another problem should be drawing between pixels, but this can be solved by 
rounding to integer values in backend.

I think that using points (or other fixed, device-independent, measurement 
units) is worthwhile, also from the future point of view.

What do you think?

Best regards,

Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]