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; }
http://www.36588.com.cn/digital/article/article_22897_1.html
{
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;
}
http://www.codeproject.com/cs/media/Image_Processing_Lab.asp