This question has been asked a lot, so we've written a simple demo that does exactly that. We use DotImage to read and write the TIFF images, and the TiffFile class in DotImage to read and store the WANG annotation data. DotAnnotate is used for converting the WANG data to and from our annotations, as well as for viewing and editing the annotations.
Original Article:
Q10147 - HOWTO: Read and write WANG annotations when working with multipage TIFF files