Take pixel-by-pixel measurements of a silhouette in jpeg or png format for use with the gdi function.
Useful links