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.net¿ª·¢£¡
±¾ÈËÊÇѧasp£¬php³öÉí£¡
ÓÉÓÚʱ¼ä²Ö´Ù£¬±¾ÈËÓÖ²»Äܼ°Ê±µÄÕÆÎÕasp.netģʽ¿ª·¢web³ÌÐò£¡
´ÖÂԵĿ´ÁËһϣ¬Ã²ËÆËùÓеĿؼþ£¬Ö»Òª±ê×¢ÊÇ runat="s ......
RT```
ÏÖÔÚÓÐÒ»¸öÐÂÏîĿҪ×ö, ÓÃÄĸö°æ±¾µÄAsp.Net À´¿ª·¢ºÃÄØ? ¸øµãÒâ¼û.
ÒÔǰֻÓùýAsp.Net 2.0 ºÍ Sql 2000
лл!
.net2.0 + sql05
ÓÃvs2008+sql server 2005
vs2008Äã¿ÉÒÔÑ ......
ÔÚÏÂÓÃvb±àдÁËÒ»¸öµ÷ÓÃÌõÂë´òÓ¡»ú¶¯Ì¬Á´½Ó¿â´òÓ¡ÌõÂëµÄactivex£º
<OBJECT ID="BarcodePrint"
CLASSID="CLSID:398953F3-F9CD-4BD5-90DB-53A327972617"
CODEBASE="BarcodeCom. ......
·þÎñÆ÷·ÅÖÃÔÚÄÚÍø¡£ÍøÕ¾Ö»ÄÜÊÇͨ¹ýÄÚ²¿ÍøÂç·ÃÎʵġ£ÔõÑù»ñÈ¡¿Í»§¶Ë¼ÆËã»úµÄÓòºÍ¼ÆËã»úÃû£¿
RT£¬Ð»Ð»ÁË¡£
Request.UserHostName
Request.UserHostAddress
Õâ¸öÊÔ¹ýÁ˲»ÐС£
ÈçºÎÔÚ.NETÖлñÈ¡µçÄÔÃû£ ......
ÐÂÈËÒ»¸ö£¬²»¶®£¬Ï£Íû´ó¼Ò¶à¶àÖ¸µã
ÎÒËæÒâн¨Ò»¸öÍøÕ¾£¨2.0ºÍ3.5µÄ¶¼ÊÔ¹ý£©£¬Ö»·ÅÉÏÒ»¸ö¿Ø¼þ£¬È»ºó¾ÍÖ±½ÓÔËÐÐÁË£¬ÂíÉϾÍÌø³öÒ»¸ö³ö´íµÄÒ³Ãæ£¬´ó¸ÅÊÇ˵
¡°/WebSite1¡±Ó¦ÓóÌÐòÖеķþÎñÆ÷´íÎó¡£
--- ......