ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.2052/cpguide/html/_gdiplus_rotating_reflecting_and_skewing_images_usecsharp.htm系统自己带的帮助

解决方案 »

  1.   

    pictureBox1.Image.RotateFlip(RotateFlipType.Rotate90FlipNone);//绕着中心旋转90度
    pictureBox1.Refresh();//刷新显示
    pictureBox1.Image.RotateFlip(RotateFlipType.RotateNoneFlipX);//绕着X轴旋转90度
    pictureBox1.Refresh();//刷新显示
    pictureBox1.Image.RotateFlip(RotateFlipType.RotateNoneFlipY);//绕着Y轴旋转90度pictureBox1.Refresh();//刷新显示
    pictureBox1.Image.RotateFlip(RotateFlipType.RotateNoneFlipXY);//绕着XY轴旋转90度pictureBox1.Refresh();//刷新显示
    每次旋转后要进行刷新。
      

  2.   

    public int rotateType = 1;private void menuItemRotate_Click(object sender, System.EventArgs e)
    {
    RotateForm frm = new RotateForm();
    if(frm.ShowDialog() == DialogResult.OK)
    {
    switch(frm.rotateType)
    {
    case 1:
    image.RotateFlip(RotateFlipType.Rotate180FlipNone);
    break;
    case 2:
    image.RotateFlip(RotateFlipType.Rotate180FlipX);
    break;
    case 3:
    image.RotateFlip(RotateFlipType.Rotate180FlipXY);
    break;
    case 4:
    image.RotateFlip(RotateFlipType.Rotate180FlipY);
    break;
    case 5:
    image.RotateFlip(RotateFlipType.Rotate270FlipNone);
    break;
    case 6:
    image.RotateFlip(RotateFlipType.Rotate270FlipX);
    break;
    case 7:
    image.RotateFlip(RotateFlipType.Rotate270FlipXY);
    break;
    case 8:
    image.RotateFlip(RotateFlipType.Rotate270FlipXY);
    break;
    case 9:
    image.RotateFlip(RotateFlipType.Rotate90FlipNone);
    break;
    case 10:
    image.RotateFlip(RotateFlipType.Rotate90FlipX);
    break;
    case 11:
    image.RotateFlip(RotateFlipType.Rotate90FlipXY);
    break;
    case 12:
    image.RotateFlip(RotateFlipType.Rotate90FlipY);
    }
    }
    rect.Width = image.Width;
    rect.Height = image.Height; 
    dirty = true;
    this.Refresh();
    }
      

  3.   

    上面的方法我试了,好用!
    1.我的图片是从Oracle9读出,在.NET 水晶报表里显示的,能转吗?
    2.能实现物理旋转吗? 下次就不用转了!
      

  4.   

    怎么把水晶报表的图片字段(Field1)取出来啊?King=crBlobFieldObject