首页
ASP教程
PHP教程
.NET教程
MSSQL教程
Mysql教程
Html/Css
JavaScript
Dreamweaver
站长
当前位置:
首页
>>
.Net技术问答1
>>
.Net问答2
>>请高手帮我看看这段代码!! 我是菜鸟
请高手帮我看看这段代码!! 我是菜鸟
问: Dim image,anewimage As System.Drawing.Image dim width,height,newwidth,newheight as integer Dim callb As System.Drawing.Image.GetThumbnailImageAbort SourceFile= Server.mappath("../" & Save_Ppicpath & "/" & true_filename) DestinationFile = Server.mappath("../" & Save_Lpicpath & "/" & true_filename) newwidth=Save_LPicsize 缩略图到是生成了,但是文字注释没有写入图片,图片写上版权,请帮着改一下,非常感谢. image=System.Drawing.Image.FromFile(SourceFile) width=image.Width height=image.height newheight=image.height/image.Width*newwidth aNewImage=image.GetThumbnailImage(newwidth,newheight,callb,new System.IntPtr()) '我怀疑下面三行有问题,但不明白 dim output as Bitmap = new Bitmap(aNewImage) dim g as Graphics = Graphics.FromImage(output) g.DrawString("temp_pic",new Font("Arial Black", 14),new SolidBrush(Color.AntiqueWhite),100,100) aNewImage.Save(DestinationFile,System.Drawing.Imaging.ImageFormat.Jpeg) image.Dispose() ______________________________________________________________________________________________ 答1: http://dotnet.aspx.cc/ShowDetail.aspx?id=221BC601-1A1B-4E1F-883D-04B043659703
copyright 2004-2009
www.qqcf.com
all rights reserved. DIV+CSS架构
本站为学习性免费网站,没有任何商业性质,甚至连一个外部广告都没有投放
所有文章均来源于互联网,如发现有侵权,请来信告知,本站将会以最快的速度删除和改正,E-Mail:cftop@qq.com