Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 20, 2010, 09:44 PM   #1
Blakeasd
macrumors 6502a
 
Join Date: Dec 2009
Drawing a grid in Core Graphics

Hello Everyone,
I am trying to create a grid using a custom view, but I just can't get it how I want it. I am trying to draw something very simple, but it's not working. This is what I am trying to draw:
http://www.instructables.com/image/F...Axis-Graph.jpg
Does anyone know how to draw this in a custom view? Thanks
Blakeasd is offline   0 Reply With Quote
Old Nov 20, 2010, 10:36 PM   #2
lloyddean
macrumors 6502a
 
Join Date: May 2009
Location: Des Moines, WA
Show what code you've tried and are not happy with.
lloyddean is offline   0 Reply With Quote
Old Nov 21, 2010, 04:07 AM   #3
robbieduncan
Moderator
 
robbieduncan's Avatar
 
Join Date: Jul 2002
Location: London
Quote:
Originally Posted by lloyddean View Post
Show what code you've tried and are not happy with.
Very much this! One thing I would note: if you want crisp lines then draw at 0.5 increments. The reasons for this are due to the way Quartz anti-aliases. So a line from (0,0.5) to (10,0.5) would look like a crisp single-pixel line and (0,0) to (10,0) would look like it was straddling the pixel boundary and be anti-aliases across two pixels.
robbieduncan is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Need to Replace my 2ghz Intel Core Duo. Suggestions for someone in the Graphics Field Wintg005 iMac 4 Jun 7, 2010 11:38 PM


All times are GMT -5. The time now is 03:38 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC