Steganografie/Encryption/BaseEncryption.cs
/// <summary>
/// Returns a list of
/// all last bits
/// </summary>
/// <param name="image"></param>
/// <returns></returns>
Returns a list of
all last bits
Returns a list of all last bits
protected List<int> GetBitsInImage(int filler, Bitmap Image)
		{
			var lastbits = new List<int>();
			for (int y = 0; y < Image.Height; y++)
			{
				for (int x = 0; x < Image.Width; x++)
				{
					lastbits.Add(Image.GetPixel(x,y).R % 2);
					lastbits.Add(Image.GetPixel(x, y).G % 2);
					lastbits.Add(Image.GetPixel(x, y).B % 2);
				}
			}
			return FillList(lastbits, filler);
		}
protected List < int > GetBitsInImage ( int filler , Bitmap Image ) { var lastbits = new List < int > ( ) ; for ( int y = 0 ; y < Image . Height ; y ++ ) { for ( int x = 0 ; x < Image . Width ; x ++ ) { lastbits . Add ( Image . GetPixel ( x , y ) . R % 2 ) ; lastbits . Add ( Image . GetPixel ( x , y ) . G % 2 ) ; lastbits . Add ( Image . GetPixel ( x , y ) . B % 2 ) ; } } return FillList ( lastbits , filler ) ; }
Returns a list of
all last bits
Returns a list of all last bits
None
filler
int
Image
Bitmap
image
None