Blog
|
Photography
|
Highlights
|
Contact
|
About
|
Scarlett is now 6lbs 3oz. Clearly I'm not the only one who appreciates Lisa female assets.
Categories
Ben's Blog (92)
Development (16)
Lisa's Blog (47)
All (156)
Tags
Africa (41)
Americanisms (4)
Bing (6)
British Food (7)
Canada (6)
Cape Town (4)
Cooking (7)
Diving (5)
Elephant (5)
Exif (9)
Facebook (4)
Flying (6)
Food (9)
Fotofly (10)
Fundu Lagoon (4)
Good Earth Tours (6)
Honeymoon (42)
Intrepid Overland (17)
IPTC (4)
Just For Fun (7)
Kenya (8)
Lion (4)
Michelin Star (5)
Microsoft (20)
Monterey Bay Aquarium (5)
Mountain Biking (12)
Rwanda (4)
San Francisco (5)
Search Engine Optimzation (SEO) (4)
Serengeti National Park (4)
Silverlight (4)
Tanzania (14)
Tassography (16)
The Sea Nettle Jelly (6)
TransRockies (8)
Travel Woes (4)
Uganda (14)
Windows Imaging Component (10)
Windows Live (9)
XMP (9)
Archive
Mar 2012 (1)
Jan 2012 (1)
Nov 2011 (2)
Aug 2011 (2)
Jun 2011 (1)
Feb 2011 (1)
Jan 2011 (13)
Dec 2010 (20)
Nov 2010 (12)
Oct 2010 (4)
Aug 2010 (5)
Jun 2010 (4)
May 2010 (2)
Apr 2010 (7)
Mar 2010 (5)
Feb 2010 (1)
Jan 2010 (3)
Nov 2009 (8)
Oct 2009 (4)
Sep 2009 (4)
Jul 2009 (6)
Jun 2009 (5)
May 2009 (7)
Mar 2009 (1)
Feb 2009 (5)
Jan 2009 (7)
Dec 2008 (6)
Oct 2008 (3)
Sep 2008 (3)
Aug 2008 (9)
Jul 2008 (3)
Jun 2008 (1)
Subscribe
RSS & Atom Feeds
Blog
▪
Getting Started with Fotofly
Tags:
Fotofly
It’s been about two months since I posted
Fotofly
on
Codeplex
and I’ve had plenty of feedback and it’s been download over 100 times! What I haven’t written is a simple introduction on how to use the library. So that’s the aim of this blog.
Step 1 – Download the Library
First you need to download the DLL (or download the source code and build it yourself):
http://fotofly.codeplex.com/Release/ProjectReleases.aspx
Follow this link to download the DLL and save it somewhere you can reference it from your Visual Studio project.
Step 2 – Add a Project Reference
Next, open your project, right click on references and select “Add Reference”:
Select the browse option and point it at the DLL you download in Step 1.
Step 3 – Writing a Simple App
Now you can start using Fotofly. Here’s a simple C# console app example that reads “test.jpg” and writes all the Tags to the console:
namespace Fotofly.Example
{
using System;
using Fotofly;
public class Program
{
public static void Main(string[] args)
{
JpgPhoto photo = new JpgPhoto("test.jpg");
foreach (Tag tag in photo.Metadata.Tags)
{
Console.WriteLine(tag.FullName);
}
}
}
}
JpgPhoto.Metadata is the core to Fotofly and if you look at this in a debugger you’ll see all the metadata that’s read:
In addition to the standard metadata, there’s a second group called FotoflyMetadata. This is used by Fotofly to store metadata that can’t be safely stored elsewhere in the file. The method of storage follows the XMP standard and is readable by any XMP aware application, nor should they delete\modify it.
That’s it for now, please keep the feedback coming.
This website, all photography & other content is Copyright © Ben Vincent. Unauthorised use of images is strictly prohibited.
Last Updated: Wed, 14 Dec 2011, 16:30:58 | Website Version v4.0.4138.41239 | Content v7.002