Windows Vista (RSS)

Reading XMP MetaData Keywords with WPF

WPF has an interesting way to read metadata associated with a photo.  All metadata can be extracted using the BitmapMetaData object.  The BitmapMetaData object supports the various metadata schemas including: Exif, tEXt, IFD, IPTC and XMP.

Here's a simply way to read an existing image's metada with C#:

BitmapMetadata metadata = (BitmapMetadata)myImage.Source.Metadata;

MessageBox.Show(metadata.Title);

Looking at the BitMapMetaData, you can find out all sorts of information such as camera model, date taken, caption, etc.  In particular, I was interested in reading the Tags added by Windows Photo Gallery in Vista.  The Microsoft Photography Blog article states that "All metadata written to photos by Windows Vista will be written to XMP (always directly to the file itself, never to a ‘sidecar’ file)."  Furthermore, I found that the tags are stored in the keywords collection in the metadata. Simple enough. I expanded my sample yesterday to display the tags associated with an image when it's selected. 

I haven't figured a way to programmatically add new tags to the images yet. I have some code in the demo to add new tags using the InPlaceBitmapMetadataWriter object that doesn't work. Let me know if I'm missing something.

An aside, the demo now also supports multiple files drag and drop.  I also cleaned up the styling a bit.

DragDropMedia2

Source: http://blogs.vertigosoftware.com/files/alan/dragdropmedia.zip

Compiled and Programmed with .NET 3.0 Framework.

posted by AlanL with 4 Comments

Photo Gallery and Windows Experience Index

Vista Photo Gallery Slideshow

I found out recently that your Windows Experience Index score can affect the feature set for certain programs in Vista, in addition to whether you can run Aero and Flip 3D.

For example, with a score of 3.0 or higher, the slideshow feature in Windows Photo Gallery is more robust.  It has nice transitions and themes support for the slideshow, which is very cool.  Definately check this out if you have a score higher 3. With a lower score you get static images that are replaced without transitions or blends between images.

You can read more about the Photo Gallery slideshow feature here.  “On par with the requirements to run Aero Glass, you’ll need a ‘Graphics’ score of at least 3.0. “

For in-depth look at the Windows experience index, check out the Vista Team Blog.

I did a quick search but didn't find a simple way to retrieve the Index score with C#.

posted by AlanL with 0 Comments

Vista Window Preview

One of the Vista features that I really like is the small preview windows as you hover over the taskbar.  I didn't know but discovered that video will play smoothly inside of these little window previews! 

Makes me wonder.. how was this done?  Can these little preview window be persistent.  It'll be great productivity boost for me in terms of multitasking if I can have a small copy of any window in the sidebar or floating about.  I can watch a screencast and code at the same time.  It's worth investigating.

posted by AlanL with 1 Comments

Running Windows Vista

I've made the jump to Windows Vista RC1 (Build 5728) yesterday.  Two things I did off the bat.

Disable UAC

Why? After a fresh OS installation I will most likely spend the day installing the programs that I use regularly.  Standard User rights and UAC slows the process down.  I pretty sure I know what I'm doing and I take full responsibility for any unsecure actions I may make.  Overall, I'm still undecided about the benefits of UAC for power users; I might not re-enable this feature.

Here's how to disable UAC:
Windows Vista Secret #4: Disabling UAC

Fix the Power Button

The Power Button on Vista defaults to Sleep mode.  There are a few problems with this for me.

  • Most likely when I hit the power button, I intend to Shutdown and not Sleep.  When I think of sleep mode, I think of closing the lid of my laptop.
  • Vista takes it time to wake up from sleep mode.  The OS is awake but my mouse (Logitech MX1000) takes a minute to function.  My keyboard (MS Natural Keyboard) remain unresponsive after sleep mode.

Here's how to change the Power Button to Shutdown:
Vista: Start Menu Power Button

 

Besides these two changes, so far I'm really digging Windows Vista RC1 5728.

posted by AlanL with 2 Comments