Bitmap bmpt1 = null;
private void FrmDetailImg_Load(object sender, EventArgs e)
{
MemoryStream ms = new MemoryStream(pic);
Bitmap bmpt = new Bitmap(ms);
bmpt1 = bmpt;
pictureBox1.Image = bmpt;
}
//垂直旋转 RotateFlipType.Rotate180FlipX
bmpt1.RotateFlip(RotateFlipType.Rotate180FlipX);
pictureBox1.Image = bmpt1;
//顺时针90度旋转 RotateFlipType.Rotate90FlipNone
bmpt1.RotateFlip(RotateFlipType.Rotate90FlipNone);
pictureBox1.Image = bmpt1;
//水平旋转 RotateFlipType.Rotate180FlipY
bmpt1.RotateFlip(RotateFlipType.Rotate180FlipY);
pictureBox1.Image = bmpt1;
//逆时针90度旋转 RotateFlipType.Rotate270FlipNone
bmpt1.RotateFlip(RotateFlipType.Rotate270FlipNone);
pictureBox1.Image = bmpt1;