Exemplo n.º 1
0
        public Fingerprint GetFingerprint()
        {
            if (fFingerprint == null)
            {
                byte[] imageData = ImageTools.GetPixelBytesFromImage(fSystemImage);
                fFingerprint = new Fingerprint(imageData);
            }

            return(fFingerprint);
        }
Exemplo n.º 2
0
 private void UpdateSystemImage(Image newImage)
 {
     if (fSystemImage != newImage)
     {
         fSystemImage.Dispose(); // Free resources for the existing image and create new one from byte buffer
         fSystemImage = newImage;
         fFingerprint = null;
         fMetadata    = null;
     }
 }
Exemplo n.º 3
0
        public Fingerprint GetFingerprint()
        {
            if (fFingerprint == null)
            {
                byte[] imageData = ImageTools.ExtractPixelBytesFromBitmap(fSystemImage as BitmapSource);
                fFingerprint = new Fingerprint(imageData);
            }

            return(fFingerprint);
        }