Ejemplo n.º 1
0
 private void Initialize(Bitmap image)
 {
     helper      = new EncoderDecoderHelper();
     Image       = image;
     pixelColors = new byte[image.Height * image.Width * 3];
     helper.FillPositionArray(image, positions);
     helper.SetNextCurrentPosition(ref currentPosition, positions);
     helper.FillPixelColorsArray(image, pixelColors);
 }
Ejemplo n.º 2
0
 public void Reset()
 {
     helper      = new EncoderDecoderHelper();
     allText     = new StringBuilder();
     pixelColors = new byte[Image.Height * Image.Width * 3];
     helper.FillPositionArray(Image, positions);
     helper.SetNextCurrentPosition(ref currentPosition, positions);
     helper.FillPixelColorsArray(Image, pixelColors);
     GetLengthPositions();
 }