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

Similar Threads
thread Thread Starter Forum Replies Last Post
Huion H610 Pro Graphics Drawing Pen Tablet - Possible B1G1F (Slight YMMV) (price: $76 shyam09 Buying Tips and Advice 0 May 22, 2014 03:53 PM
Free graphics programs for drawing styan5 Design and Graphics 8 Jan 17, 2013 09:28 AM
How does the iPad 4 double graphics performance, when it's still quad-core? yow. iPad 3 Oct 23, 2012 07:10 PM
What do you rather, discrete graphics or quad core? n0cus Mac mini 1 Oct 23, 2012 05:28 PM
whats the best graphics card for a 2006 dual core king tech 1 Mac Pro 3 Jul 2, 2012 07:33 PM

Forum Jump

All times are GMT -5. The time now is 06:52 PM.

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

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