解决方案 »

  1.   

    - -.东西真多 膜拜。。 
    [email protected] 
    谢楼主.. 
      

  2.   

    顶  给我一份  [email protected]
      

  3.   

     "tchjl2007"<[email protected]> 已发送  
     "cj520120"<[email protected]> 已发送 
     "xupeihua_asp_net"<[email protected]> 已发送
      

  4.   

    [email protected] 拉风的邮箱啊……哈哈
      

  5.   

    [email protected] 已发送
    误会了,没看见
      

  6.   

    仁兄真是个好人啊  
    给我也发一份吧  [email protected]
      

  7.   

    [email protected] .............hehe
      

  8.   

    [email protected]~lz收集这些资料真不容易、。、
      

  9.   

    顶楼主发我一份。谢谢啊
    [email protected]
      

  10.   

    [email protected]
    我正在学GDI+呢,谢谢了,楼主
      

  11.   

    [email protected]
    [email protected]
    [email protected]
    [email protected]已发送
      

  12.   

    [email protected] 
    [email protected] 
    已发送
      

  13.   

     膜拜。。 
    [email protected]
    谢楼主.. 
      

  14.   

    顶    [email protected]
      

  15.   

    [email protected] 谢谢分享下参考学习
      

  16.   

    [email protected]
    谢谢分享
    我最近正在学这方面的东西
      

  17.   

    [email protected];
    [email protected];
    [email protected];
    [email protected];
    [email protected];
    [email protected];
    已发送
      

  18.   

    [email protected]
    哥来了,给发一份。
      

  19.   

    [email protected]
    已发送
      

  20.   

    [email protected] 发送失败
      

  21.   

    [email protected]  偶也要,谢谢... ...
      

  22.   

    very very thank you ....
    [email protected]
      

  23.   


    用渐变画刷或者路径画刷http://blog.csdn.net/bobui/archive/2010/01/05/5136643.aspx
      

  24.   

    [email protected]@tom.com已发送,收到后请留言,没收到我再发一次
      

  25.   

    顶楼主,麻烦也给我发一份。
    [email protected]
      

  26.   

    thank you very....
     [email protected] 已收到
      
      

  27.   

    哦哦哦哦,又收集我的郵箱了[email protected]
      

  28.   

    [email protected] 已发送,收到后请留言,没收到我再发一次
      

  29.   

    [email protected]已发送,收到后请留言,没收到我再发一次
      

  30.   

    GDI.rar 已损坏 ldmsapp 是什么格式的  打不开
      

  31.   

    LZ辛苦了,多谢![email protected]
      

  32.   

    [email protected];[email protected];已发送,收到后请留言,没收到我再发一次
      

  33.   

    [email protected] 已发送,收到后请留言,没收到我再发一次
      

  34.   

    哇塞 来了!
    [email protected]
      

  35.   

    [email protected]已发送,收到后请留言,没收到我再发一次
      

  36.   

    楼主很强大,[email protected]我一直喜欢用GDI+画图,尤其是气泡图,可之前资料都不全,现在好了,非常感谢!
      

  37.   

    [email protected]
    [email protected] 
    [email protected] 
    已发送,收到后请留言,没收到我再发一次
      

  38.   

    [email protected]楼主能给我发份吗
      

  39.   

    [email protected]
    顶!谢谢!
      

  40.   

    楼主真是好人[email protected]
     谢谢
      

  41.   

    Mark
    [email protected]
    谢谢啦
      

  42.   

    居然还用了getpixel,上不了档次的。
      

  43.   

    很好的资料,学习一下  [email protected]  多谢楼主分享
      

  44.   

    [email protected]收到  谢谢lz分享 
      

  45.   

    [email protected]
    谢谢楼主给我发一份啊
      

  46.   

    [email protected]谢谢!!!!!!
      

  47.   

    我知道图形处理要讲速度,后面几个例子只是为了说明几种效果的制作过程,用内存锁定操作是比较好,但是我没那么多时间去写啊,所以大家也将就将就
    下面是个内存操作灰度的程序:bmp = new Bitmap(Application.StartupPath + "\\1.jpg");
                Bitmap bmp2 = (Bitmap)bmp.Clone();
                int width = bmp2.Width;
                int height = bmp2.Height;
                Rectangle rect = new Rectangle(0, 0, width, height);
                //用可读写的方式锁定全部位图像素
                BitmapData bmpData = bmp2.LockBits(rect, ImageLockMode.ReadWrite, bmp2.PixelFormat);
                //得到首地址
                IntPtr ptr = bmpData.Scan0;
                //24位bmp位图字节数
                int bytes = width * height * 3;            byte[] rgbValues = new byte[bytes];            Marshal.Copy(ptr, rgbValues, 0, bytes);            //灰度化
                double colorTemp = 0;
                for (int i = 0; i < bytes; i += 3)
                {
                    colorTemp = rgbValues[i + 2] * 0.299 + rgbValues[i + 1] * 0.587 + rgbValues[i] * 0.114;
                    rgbValues[i] = rgbValues[i+1] = rgbValues[i+2] = (byte)colorTemp;
                }
                //还原位图
                Marshal.Copy(rgbValues, 0, ptr, bytes);
                bmp2.UnlockBits(bmpData);
                Graphics g = this.CreateGraphics();
                g.DrawImage(bmp2, new Rectangle(410, 0, 200, 200));
                g.Dispose();
                bmp2.Dispose();
      

  48.   

    [email protected];[email protected];[email protected] 
    已发送,收到后请留言,没收到我再发一次
      

  49.   

    [email protected]    跪求发送,谢谢。。  收到的其它朋友也帮我发送下么。。
      

  50.   

    楼主给我发一份好吗谢谢了[email protected]
      

  51.   

    再发一个用指针的bmp = new Bitmap(Application.StartupPath + "\\1.jpg");
                Bitmap bmp2 = (Bitmap)bmp.Clone();
                int width = bmp2.Width;
                int height = bmp2.Height;
                Rectangle rect = new Rectangle(0, 0, width, height);
                //用可读写的方式锁定全部位图像素
                BitmapData bmpData = bmp2.LockBits(rect, ImageLockMode.ReadWrite, bmp2.PixelFormat);
                byte temp = 0;
                //启用不安全模式
                unsafe
                {
                    //获取首地址
                    byte* ptr = (byte*)(bmpData.Scan0);
                    //二维图像循环
                    for (int i = 0; i < bmpData.Height; i++)
                    {
                        for (int j = 0; j < bmpData.Width; j++)
                        {
                            temp = (byte)(0.299 * ptr[2] + 0.587 * ptr[1] + 0.114 * ptr[0]);
                            ptr[0] = ptr[1] = ptr[2] = temp;
                            ptr += 3;
                        }
                        //指针移向下一行数组的首个字节
                        ptr += bmpData.Stride - bmpData.Width * 3;
                    }
                    bmp2.UnlockBits(bmpData);
                }
                Graphics g = this.CreateGraphics();
                g.DrawImage(bmp2, new Rectangle(615, 0, 200, 200));
                g.Dispose();
                bmp2.Dispose();
      

  52.   

    [email protected]
    [email protected]  
    已发送,收到后请留言,没收到我再发一次
      

  53.   

    [email protected]请发一份,多谢
      

  54.   

    [email protected]    不好意思呀,我没收到呢,再麻烦一下好吗
      

  55.   

    哇,我来了[email protected]
      

  56.   

    楼主我有个小问题能帮忙看一下不
    我做了个照相程序,由于保存照相窗口后的图片很大,我缩小图片后,在缩小的图片上画了一个矩形框,然后保存矩形框内的图片,保存后的图像还是原来大图片的位置,请问这个问题应该怎样解决. 
    Bitmap s_image = new Bitmap(range.Width, range.Height); 
    Graphics s_graphics = Graphics.FromImage(s_image); 
    s_graphics.DrawImage(pictureBox1.Image, 0, 0, new RectangleF(range.X, range.Y, range.Width, range.Height), GraphicsUnit.Pixel);