/// <summary> /// Determines whether this instance is encrypted. /// </summary> /// <returns> /// <c>Encrypted</c> if this instance is encrypted; otherwise, <c>Unencrypted</c>. /// </returns> public EncryptionType IsEncrypted() { var sourcePixelColor = PixelUtilities.GetPixelBgra8(this.sourcePicture.Pixels, ImageConstants.FirstX, ImageConstants.SecondX, this.sourcePicture.Width, this.sourcePicture.Height); return(HeaderManager.CheckForEncryption(sourcePixelColor)); }
private void checkForEncryption() { var sourcePixelColor = PixelUtilities.GetPixelBgra8(this.sourcePicture.Pixels, ImageConstants.FirstX, ImageConstants.SecondX, this.sourcePicture.Width, this.sourcePicture.Height); if (HeaderManager.CheckForEncryption(sourcePixelColor) == EncryptionType.Encrypted) { this.isEncrypted = true; } else { this.isEncrypted = false; } }