我从之前的程序得到一个Bitmap型的 bitmap现在要按比例缩小该图,例如比例为int intZoom = 50;所以bitmap的新width应该 等于 原来width * 50 / 100
    bitmap的新height应该 等于 原来height * 50 / 100不知道怎样用程序实现高手帮忙啊~~~~~~~~~~

解决方案 »

  1.   

    如何在C#中实现图片缩放
    http://www.36588.com.cn/digital/article/article_22897_1.html
      

  2.   

    public void ScaleExample(PaintEventArgs e)
    {
     image img = img... //获得img ,
    Graphics g= Graphics FromImage(
      img
    );/ Create a matrix and scale it.
    Matrix myMatrix = new Matrix();
    myMatrix.Scale( 0.5, 0.5, MatrixOrder.Append);
    // Draw the rectangle to the screen again after applying the
    // transform.
    g.Transform = myMatrix;
    }
      

  3.   

    这儿有一个C#写的处理图片的东东,功能全得像PHOTOSHOP一样,参考一下,
    http://www.codeproject.com/cs/media/Image_Processing_Lab.asp