C / C++ / C#

  1. Home
  2. Computing & Technology
  3. C / C++ / C#
photo of David Bolton

David's C / C++ / C# Blog

By David Bolton, About.com Guide to C / C++ / C#

Cairo Graphics - Open Source 2D Rendering

Friday November 7, 2008
Cairo Graphics SampleAs part of my iPhone development I've been looking around at C and C++ libraries. Though the iPhone has extensive graphics capability e.g. through Quartz and Open GL ES, the fact that you can link C and C++ in is very handy. One such library is Cairo Graphics which is free software. As always you need to read the licenses before using them in your applications.

Cairo is a cross system 2D renderer written in C designed to be used by many different programming languages. Think of it as a bit like Windows GDI+. It has pretty good documentation with samples, API reference, a cookbook and a tutorial. If you've done graphics the old fashioned windows way, eg select display context, select fonts etc, you'll feel right at home! Of course you've probably used at least one application that uses Cairo; namely the Gecko layout engine that powers Firefox 3.0.

Comments

No comments yet. Leave a Comment

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore C / C++ / C#

About.com Special Features

C / C++ / C#

  1. Home
  2. Computing & Technology
  3. C / C++ / C#

©2009 About.com, a part of The New York Times Company.

All rights reserved.