Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

asp.net ÖÐͼƬƴ½Ó

ÎÒÔÚasp.netÖÐÎÒÒª½«ËÄÕÅ»òËÄÕÅÒÔϵÄͼƬƴÔÚÒ»Æð£¬ÈçºÎʵÏÖ£¿Í¼Æ¬ÊÇÎÒ´ÓÊý¾Ý¿âÖжÁ³öÀ´µÄ¶þ½øÖÆ¡£µ¥ÕŶÁ³öÀ´µÄ´úÂëÈçÏ£ºC# code:
DataHelper dh=new DataHelper();
System.Drawing.Image image = dh.getImage(Request["id"].ToString());

Graphics g = Graphics.fromImage(image);
image.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);

Èç¹ûÎÒÕâʱ¶Á³öËÄÕÅ»òËÄÕÅÒÔϵģ¬Ôõôƴ³ÉÒ»ÕÅͼƬÏÔʾ³öÀ´£¿
up!!!!

ÓûæÍ¼Àà²Ù×÷  Ï൱ÓÚÒ»¸ö´óͼÉÏÃæÓÐËĸöСͼ  ÿ¸öСͼ¿ÉÒÔ×÷Ϊһ¸öµã  Ò²¾ÍÊÇËĸöµãµÄͼ
×Ô¼ºÊÔÊÔ

¶ÔÎÒͦ¸ßÉîµÄ£¬Ã»Ñо¿¹ý£¬¶¥Ò»ÏÂ

ÓÃImgMapÊÔÊÔ¿´

C# code:

Bitmap bmp=new Bitmap(800,600); //´´½¨Ò»Õſհ×ͼƬ
Graphics g=Graphics.fromImage(bmp);

g.DrawImage(image, new Point(0, 0)); //°Ñimage»­µ½¿Õ°×ͼµÄ0,0µã£¬¼ÙÉèimage´óСÊÇ100*100
g.DrawImage(image1, new Point(101, 0)); //°Ñimage1»­µ½¿Õ°×ͼµÄ101,0µã

           

ÒÔ´ËÀàÍÆ


Ïà¹ØÎÊ´ð£º

ÇëÎÊ»¹ÄÜÏñasp£¬»òÕßphpÄÇÑù¿ª·¢asp.net³ÌÐòÂð£¿

ÏÖÔÚÓиöСÏîÄ¿£¬±ØÐë²ÉÓÃasp.net¿ª·¢£¡

±¾ÈËÊÇѧasp£¬php³öÉí£¡

ÓÉÓÚʱ¼ä²Ö´Ù£¬±¾ÈËÓÖ²»Äܼ°Ê±µÄÕÆÎÕasp.netģʽ¿ª·¢web³ÌÐò£¡

´ÖÂԵĿ´ÁËһϣ¬Ã²ËÆËùÓеĿؼþ£¬Ö»Òª±ê×¢ÊÇ runat="s ......

´ó¼ÒʹÓÃÄĸö°æ±¾µÄAsp.Net ºÍ Sql

RT```


ÏÖÔÚÓÐÒ»¸öÐÂÏîĿҪ×ö, ÓÃÄĸö°æ±¾µÄAsp.Net À´¿ª·¢ºÃÄØ? ¸øµãÒâ¼û.

ÒÔǰֻÓùýAsp.Net 2.0 ºÍ Sql 2000

лл!
.net2.0 + sql05

ÓÃvs2008+sql server 2005

vs2008Äã¿ÉÒÔÑ ......

asp.netÖе÷ÓÃactivexµÄº¯Êý³ö´í

ÔÚÏÂÓÃvb±àдÁËÒ»¸öµ÷ÓÃÌõÂë´òÓ¡»ú¶¯Ì¬Á´½Ó¿â´òÓ¡ÌõÂëµÄactivex£º
<OBJECT ID="BarcodePrint"
CLASSID="CLSID:398953F3-F9CD-4BD5-90DB-53A327972617"
CODEBASE="BarcodeCom. ......

asp.netÔõÑù»ñÈ¡ÄÚÍø¿Í»§¶ËÓòÃûºÍ¼ÆËã»úÃû£¿

·þÎñÆ÷·ÅÖÃÔÚÄÚÍø¡£ÍøÕ¾Ö»ÄÜÊÇͨ¹ýÄÚ²¿ÍøÂç·ÃÎʵġ£ÔõÑù»ñÈ¡¿Í»§¶Ë¼ÆËã»úµÄÓòºÍ¼ÆËã»úÃû£¿

RT£¬Ð»Ð»ÁË¡£
Request.UserHostName
Request.UserHostAddress

Õâ¸öÊÔ¹ýÁ˲»ÐС£

ÈçºÎÔÚ.NETÖлñÈ¡µçÄÔÃû£ ......

ÇóÖú°¡£¬Ëæ±ã½¨Á¢Ò»¸öASP.NETµÄÍøÕ¾¾ÍÎÞ·¨ÔËÐÐ

ÐÂÈËÒ»¸ö£¬²»¶®£¬Ï£Íû´ó¼Ò¶à¶àÖ¸µã

ÎÒËæÒâн¨Ò»¸öÍøÕ¾£¨2.0ºÍ3.5µÄ¶¼ÊÔ¹ý£©£¬Ö»·ÅÉÏÒ»¸ö¿Ø¼þ£¬È»ºó¾ÍÖ±½ÓÔËÐÐÁË£¬ÂíÉϾÍÌø³öÒ»¸ö³ö´íµÄÒ³Ãæ£¬´ó¸ÅÊÇ˵

¡°/WebSite1¡±Ó¦ÓóÌÐòÖеķþÎñÆ÷´íÎó¡£
--- ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ