C#,Bitmap map = newvc bitmap 去头信息(10000,10000);Graphics g = Graphics.FromImage(map);但是map里没有内容

其他回答(1)
&& g.Clear(Color.Empty);
收获园豆:10
园豆:2039
园豆:2039
&&&您需要以后才能回答,未注册用户请先。C# Bitmap部分截图_百度知道
C# Bitmap部分截图
我还没弄清什么线程什么的, 30, g,&#47, new Rectangle(100,
Graphics g = Graphics, 我也成这样 他说我不是form什么Bitmap bitmap2 = new Bitmap(140,写这 他又说我控件问题 线程什么的我不懂啊 画出来是黑色的,Frame, 120, 10, 180)),
&#47,大致是这样的
一个控件 按一下引发一个委托方法 这个方法里有
Bitmap bitmap = (Bitmap)eventArgs,我只想要部分区域的图片在保存 谢谢了
&#47, 10,,快搞疯了,FromImage(bitmap),
&#47,可以直接save,
大致意思是bitmap 算是图片了, units),Pixel, 180),
&#47,问题是 这个图片 我只要里面的局部 DrawToBitmap(bitmap, GraphicsUnit units = GraphicsUnit,新手新手, RectangleF destRect = new RectangleF(100,DrawImage(bitmap2, 120,&#47,&#47, destRect,Clone(),&#47, 30, 200),
提问者采纳
\2,PixelFormat,&nbsp,&nbsp,&nbsp,&nbsp,,&nbsp,=&nbsp,&nbsp,0,Pixel),rect,Bitmap(rect,FromFile(@&quot,new&nbsp,&nbsp,CutImage(Image&nbsp,50,},),png&quot,Save(@&quot,Width,Rectangle(50,return&nbsp,ImageFormat,Png),b,g,\1,&nbsp,F,Bitmap&nbsp,Graphics,new&nbsp,Format32bppArgb),f,创建一个新的bitmap 然后把原来的bitmap复制上去就好了,g,&nbsp,img,&nbsp,=&nbsp,Height,Rectangle&nbsp,GraphicsUnit,50))
,g&nbsp,FromImage(b),rect){&nbsp,Main(){ CutImage(Image,&nbsp,b&nbsp,0,Graphics&nbsp,}void&nbsp,rect,50,Bitmap&nbsp,&nbsp,DrawImage(img,Dispose(),jpg&quot,
你这个 测试过吗
我怎么感觉是在原图上覆盖了
提问者评价
还是有提示作用谢谢
其他类似问题
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!&&|&&
LOFTER精选
阅读(2590)|
用微信&&“扫一扫”
将文章分享到朋友圈。
用易信&&“扫一扫”
将文章分享到朋友圈。
历史上的今天
id:'fks_087070',
blogTitle:'C#中Bitmap类实现对图像操作的一些方法(Asp.net(C#)-放大缩小图片尺寸)',
blogAbstract:'导入以下两个包: &&& System.D&&&&& System.Drawing.I建产对象:&&&& Bitmap bm = new Bitmap(\"c:/1.bmp\");缩放:&&&& Bitmap bm1 = new Bitmap(bm,width,height);格式转换:&&&& bm.save(\"c:/1.jpg\",ImageFromat.Jpeg);&&&& bm1.Save(\"c:/1.gif\", ImageFormat.Gif);',
blogTag:'',
blogUrl:'blog/static/',
isPublished:1,
istop:false,
modifyTime:0,
publishTime:6,
permalink:'blog/static/',
commentCount:0,
mainCommentCount:0,
recommendCount:0,
bsrk:-100,
publisherId:0,
recomBlogHome:false,
currentRecomBlog:false,
attachmentsFileIds:[],
groupInfo:{},
friendstatus:'none',
followstatus:'unFollow',
pubSucc:'',
visitorProvince:'',
visitorCity:'',
visitorNewUser:false,
postAddInfo:{},
mset:'000',
remindgoodnightblog:false,
isBlackVisitor:false,
isShowYodaoAd:false,
hostIntro:'',
hmcon:'0',
selfRecomBlogCount:'0',
lofter_single:''
{list a as x}
{if x.moveFrom=='wap'}
{elseif x.moveFrom=='iphone'}
{elseif x.moveFrom=='android'}
{elseif x.moveFrom=='mobile'}
${a.selfIntro|escape}{if great260}${suplement}{/if}
{list a as x}
推荐过这篇日志的人:
{list a as x}
{if !!b&&b.length>0}
他们还推荐了:
{list b as y}
转载记录:
{list d as x}
{list a as x}
{list a as x}
{list a as x}
{list a as x}
{if x_index>4}{break}{/if}
${fn2(x.publishTime,'yyyy-MM-dd HH:mm:ss')}
{list a as x}
{if !!(blogDetail.preBlogPermalink)}
{if !!(blogDetail.nextBlogPermalink)}
{list a as x}
{if defined('newslist')&&newslist.length>0}
{list newslist as x}
{if x_index>7}{break}{/if}
{list a as x}
{var first_option =}
{list x.voteDetailList as voteToOption}
{if voteToOption==1}
{if first_option==false},{/if}&&“${b[voteToOption_index]}”&&
{if (x.role!="-1") },“我是${c[x.role]}”&&{/if}
&&&&&&&&${fn1(x.voteTime)}
{if x.userName==''}{/if}
网易公司版权所有&&
{list x.l as y}
{if defined('wl')}
{list wl as x}{/list}C# Bitmap.Save 导出低质量图怎么弄?
[问题点数:20分,结帖人linjf520]
C# Bitmap.Save 导出低质量图怎么弄?
[问题点数:20分,结帖人linjf520]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
相关帖子推荐:
匿名用户不能发表回复!|
每天回帖即可获得10分可用分!小技巧:
你还可以输入10000个字符
(Ctrl+Enter)
请遵守CSDN,不得违反国家法律法规。
转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。C#旋转bitmap图片任意角度
&&&&&&&&///&任意角度旋转
&&&&&&&&///&
&&&&&&&&///&原始图Bitmap
&&&&&&&&///&旋转角度
&&&&&&&&///&背景色
&&&&&&&&///&输出Bitmap
&&&&&&&&public&static&Bitmap&KiRotate(Bitmap&bmp,&float&angle,&Color&bkColor)
&&&&&&&&&&&&int&w&=&bmp.Width&+&<span STYLE="CoLor: #;
&&&&&&&&&&&&int&h&=&bmp.Height&+&<span STYLE="CoLor: #;
&&&&&&&&&&&&PixelFormat&
&&&&&&&&&&&&if&(bkColor&==&Color.Transparent)
&&&&&&&&&&&{
&&&&&&&&&&&&&&&&pf&=&PixelFormat.Format32bppA
&&&&&&&&&&&&}
&&&&&&&&&&&&else
&&&&&&&&&&&{
&&&&&&&&&&&&&&&&pf&=&bmp.PixelF
&&&&&&&&&&&&}
&&&&&&&&&&&&Bitmap&tmp&=&new&Bitmap(w,&h,&pf);
&&&&&&&&&&&&Graphics&g&=&Graphics.FromImage(tmp);
&&&&&&&&&&&&g.Clear(bkColor);
&&&&&&&&&&&&g.DrawImageUnscaled(bmp,&<span STYLE="CoLor: #,&<span STYLE="CoLor: #);
&&&&&&&&&&&&g.Dispose();
&&&&&&&&&&&&GraphicsPath&path&=&new&GraphicsPath();
&&&&&&&&&&&&path.AddRectangle(new&RectangleF(0f,&0f,&w,&h));
&&&&&&&&&&&&Matrix&mtrx&=&new&Matrix();
&&&&&&&&&&&&mtrx.Rotate(angle);
&&&&&&&&&&&&RectangleF&rct&=&path.GetBounds(mtrx);
&&&&&&&&&&&&Bitmap&dst&=&new&Bitmap((int)rct.Width,&(int)rct.Height,&pf);
&&&&&&&&&&&&g&=&Graphics.FromImage(dst);
&&&&&&&&&&&&g.Clear(bkColor);
&&&&&&&&&&&&g.TranslateTransform(-rct.X,&-rct.Y);
&&&&&&&&&&&&g.RotateTransform(angle);
&&&&&&&&&&&&g.InterpolationMode&=&InterpolationMode.HighQualityB
&&&&&&&&&&&&g.DrawImageUnscaled(tmp,&<span STYLE="CoLor: #,&<span STYLE="CoLor: #);
&&&&&&&&&&&&g.Dispose();
&&&&&&&&&&&&tmp.Dispose();
&&&&&&&&&&&&return&
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。

我要回帖

更多关于 bitmap转成文件 的文章

 

随机推荐