//-----------------------------------------------------------------------------------------------------------------------
        //  Form Designer Methods -- DECODER
        //-----------------------------------------------------------------------------------------------------------------------

        private void btnLoadDecoded_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Filter = "NearLosslesPredictor (*nlp)|*.nlp";

            if (ofd.ShowDialog() == DialogResult.OK)
            {
                label15.Text         = "Encoded Image";
                inputFilePathDecoder = ofd.FileName;
                bmpObject            = Helpers.ReadEncodedBmpFormat(inputFilePathDecoder, ref decodingK, ref decodingP);

                // encoded  data/ header/ k/ p/ sm/  -> global

                Helpers.DrawHistogram(pictureBoxHistogram, Helpers.CreateHistogram(bmpObject.GetBmpDataEncoded()), (float)numericUpDownHistogramScale.Value);
            }
        }
        //-----------------------------------------------------------------------------------------------------------------------
        //  Form Designer Methods -- ENCODER
        //-----------------------------------------------------------------------------------------------------------------------
        private void btnLoadBMP_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Filter = "Bitmap|*.bmp";

            if (ofd.ShowDialog() == DialogResult.OK)
            {
                inputFilePathEncoder          = ofd.FileName;
                bmpObject                     = Helpers.ReadBmpFormat(inputFilePathEncoder);
                pictureBoxOriginalImage.Image = bmpObject.GetBmpImage();

                // orig img/ header/ bmp -> global
                auxOriginalImage = bmpObject.GetBmpData();

                Helpers.DrawHistogram(pictureBoxHistogram, Helpers.CreateHistogram(bmpObject.GetBmpData()), (float)numericUpDownHistogramScale.Value);
            }
        }