GetPhotoImage

Prototype: HBITMAP GetPhotoImage(RecordData *data)

Description: This will create an HBITMAP handle to a BMP image containing the indexed photo associated with the current badge, if there is one.  The main photo has index 0 and sub-images are 1 ,2, etc.

ImageType determines how the file is transmitted via the XML link.

Unless the XML data is being used directly or the http link is slow the JPG form should not be used as poorer image quality may result.

BadgeBuilder®  will be responsible for freeing the image and this will happen when another image of any type is requested.  The client application should copy the bitmap if it intends to keep it.

Input Data Format:
ImageIndex = <photo index number>
ImageType = <jpg | bmp>  bmp is the default

Returned Data: Windows®  handle to a bitmap