private List <int> GetFingerprintPositions(string type) { List <int> fingerprintPositions = new List <int>(); using (Indigo indigo = new Indigo()) { // Get the fingerprint as a byte array; this array is fixed length. IndigoObject structure = CreateIndigoStructure(indigo); byte[] fingerprint = structure.fingerprint(type).toBuffer(); structure.Dispose(); // Loop through the array and record the identified fingerprint positions. for (int i = 0; i < fingerprint.Length; i++) { if (Convert.ToBoolean(fingerprint[i])) { fingerprintPositions.Add(i); } } } return(fingerprintPositions); }