/// <summary> /// Only Reads the photo, set's the class properties and returns the photo /// </summary> /// <returns>Citizen photo</returns> public Image CC_Get_Photo() { MemoryStream ms = null; try { Picture picture = EIDPT.GetPicture(); ms = new MemoryStream(picture.Bytes, 0, picture.BytesLength, false); // JPEG2000 Support provided by CSJ2K (http://csj2k.codeplex.com/) Image tempImage = CSJ2K.J2kImage.FromStream(ms); return(tempImage); } finally { ms.Close(); } }