title: Is there any way to save a bitmap in a lower resolution then Jpeg ? To change the resolution manual?
body: <p>I have this code:</p>
  
  <pre><code>int ISampleGrabberCB.BufferCB(double sampleTime, IntPtr pBuffer, int bufferLen)
          {
  
              if (Form1.ExtractAutomatic == true)
              {
                  using (var bitmap = new Bitmap(_width, _height, _width * 3, PixelFormat.Format24bppRgb, pBuffer))
                  {
                      if (!this.Secondpass)
                      {
                          long[] HistogramValues = Form1.GetHistogram(bitmap);
                          Form1.Histograms.Add(HistogramValues);
                          long t = Form1.GetTopLumAmount(HistogramValues, 1000);
                          Form1.averagesTest.Add(t);
  
                      }
                      else
                      {
  
                          if (_frameId &gt; 0)
                          {
                              double t = Form1.averagesTest[_frameId] / 1000.0 - Form1.averagesTest[_frameId - 1] / 1000.0;
                              w.WriteLine("averagesTest &gt;&gt;&gt;  " + t);
                              if (_frameId == 1049)
                              {
                                  w.Close();
                              }
                              if (Form1.averagesTest[_frameId] / 1000.0 - Form1.averagesTest[_frameId - 1] / 1000.0 &gt; 60.0)                                {
                                  count = 6;
                              }
  
                              if (count &gt; 0)
                              {
                                  bitmap.RotateFlip(RotateFlipType.Rotate180FlipX);
                                  bitmap.Save(Path.Combine(_outFolder, _frameId.ToString("D6") + ".jpg"),ImageFormat.Jpeg);
                                  count --;
                              }
  </code></pre>
  
  <p>Before that i SAved the bitmap as Bitmap .bmp now i changed it to Jpeg .jpg but is there anyway to change the jpg to be saved in a lower resolution ? Maybe manual change somehow ?</p>
  
  <pre><code>bitmap.Save(Path.Combine(_outFolder, _frameId.ToString("D6") + ".jpg"),ImageFormat.Jpeg);
  </code></pre>
  
  <p>Instead saving it as just jpeg maybe to save it as jpeg but with a much lower resolution.
  The reason is that i want to show each Bitmap Histogram and also to show in the same time the image/frame it self in the pictureBox but i if i will be able to save it in lower resolution the saving process will be faster.</p>
  
  <p>Since i want to check the histograms i dont mind if the images/frames will be show in a low resolution in this case.</p>