Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bezier paths and ovals



From what I know, ovals are generally regarded as either being ovate or elliptical:
<http://dictionary.reference.com/search?q=oval&r=67>


Basically the ovals in Quartz are ellipses of the form:
x2/a2 + y2/b2 = 1

Where a and b are the lengths of the sides of a bounding rectangle.

The appropriate message in Cocoa's NSBezierPath object makes an Bezier path in the shape of an ellipse within a bounding rectangle:
<http://developer.apple.com/documentation/Cocoa/Reference/ ApplicationKit/ObjC_classic/Classes/NSBezierPath.html#//apple_ref/doc/ uid/20000339/bezierPathWithOvalInRect>


Here is the rectangle structure for Cocoa:
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/TypesAndConstants/FoundationTypes.html#//apple_ref/doc/ c_ref/NSRect>


- Ken

On Apr 3, 2004, at 5:09 PM, Nathan Strange wrote:

Does anyone know what exactly is meant by an 'oval' in
the context of bezier paths used by PDFs and by Quartz?
Are these ellipses?  I got to think they must be calling them
'ovals' because their not ellipses... but they sure do look like
ellipses...

Is there anywhere to find out the formula used for these 'ovals'?
I've been googling for answers, but I don't know enough about
PDF to know where to look.

Sorry is the scitech list isn't the place for this question,
but I thought this list would understand the importance of knowing
whether your drawing an ellipse or something else.

I want to draw an ellipse and if this 'oval' is really an ellipse
that will be a nice thing to use since it would be resolution independent
unlike an ellipse that I would construct from points.
_______________________________________________
scitech mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/scitech
Do not post admin requests to the list. They will be ignored.


References: 
 >bezier paths and ovals (From: Nathan Strange <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.