asp.netÖÐÈÃͼƬ°´±ÈÀýËõ·Å
asp.netÖÐÈÃͼƬ°´±ÈÀýËõ·Å
¿ØÖÆwidth ºÍ height
ÓÃjsËõ·Å
Image¿Õ¼äµÄ¿í£¬¸ß¶¯Ì¬Ð޸ġ¡
int_Width Ä㶨µÄ¿í
int_Height Ä㶨µÄ¸ß
input_ImgFile ΪÄãÉÏ´«µ½·þÎñÆ÷µÄÔʼͼ·¾¶
out_ImgFile ±£´æµÈ±ÈÀýËõ·ÅµÄͼµÄ·¾¶
C# code:
public static void Thumbnail (int int_Width, int int_Height, string input_ImgFile, string out_ImgFile)
{
System.Drawing.Image oldimage = System.Drawing.Image.fromFile(input_ImgFile);
float New_Width; // еĿí¶È
float New_Height; // еĸ߶È
float Old_Width,Old_Height; //Ôʼ¸ß¿í
int flat = 0;//±ê¼ÇͼƬÊDz»ÊǵȱÈ
int xPoint = 0;//Èô¹ûÒª²¹°×±ßµÄ»°£¬ÔͼÏñËùÔÚµÄx£¬y×ø±ê¡£
int yPoint=0;
//ÅжÏͼƬ
Old_Width = (float)oldimage.Width;
Old_Height = (float)oldimage.Height;
if ((Old_Width / Old_Height) > ((float)int_Width / (float)int_Height)) //µ±Í¼Æ¬Ì«¿íµÄʱºò
{
New_Height = Old_Height * ((float)int_Width / (float)Old_Width);
New_Width = (float)int_Width;
//´Ëʱx×ø±ê²»ÓÃÐÞ¸Ä
yPoint = (int)(((float)int_Height - New_Height) / 2);
flat
Ïà¹ØÎÊ´ð£º
ǰ¶Îʱ¼äÅöµ½Ò»µÀÃæÊÔÌâÈçÏ£º
test.aspxÒ³ÃæÓÐÈçÏ´úÂ룺
Response.Write(Test.GetDate());
TestÀàÈçÏ£º
public class Test
{
static string dt="";
public static s ......
°ÑÒµÎñ²ãµÄ¶¼Ð´ÔÚdllÎļþÖÐÁË£¬ÏÖÔÚÏëÒªÐ޸쬴ó¼Ò¶¼ÓÃʲô¹¤¾ß´ò¿ª£¿
ÓÃvisual studio×Ô´øµÄ ildasm¿ÉÒÔÂð£¿
ÆÚ´ý¸ßÊÖ
LZºÃÀ÷º¦
Ó÷´±àÒëÈí¼þ
ÎÒÓÃReflectorÖ»ÄÜ¿´£¬²»Äܸİ¡£¿
ÓÐÃ ......
ÎÒÖ÷ÒªÏë¿ØÖÆÏÂword±£´æµÄµØÖ·£¬µ«ÊDZàÒë²»¹ýÈ¥£¬×ܾõµÃÊÇȱÁËusing¡£¡£¡£
лл
´úÂëÈçÏ£º
using System;
using System.IO;
using System.Collections;
using System.ComponentModel;
using System.Data;
u ......
ÎÒÊÇÓÃAspNetPagerÀàÍê³ÉµÄ ¿ÉÊÇÏëʵÏÖ°´Ê±¼ä˳ÐòÅÅÁÐ.
ÎÒÊÇÓÃlimit×öµÄ²éѯID×ÜÊý¸øAspNetPager
È»ºóÈÃËûÉú³ÉÒ³Êý.
select * from bbs limit 0,10 GROUP BY Mate
ÕâôÏÂÈ¥µÄ¿ÉÊÇ,ÎÒ²»Äܽâ¾ö°´Ê±¼äÅÅÐò,ÐÂÌù²»ÔÚ ......
±¾ÈËÒ»Ö±´ÓÊÂjavaµÄ¿ª·¢£¬ spring , strutsµÈµÈ£¬ ÏÖÔÚÂíÉÏÒª½ÓÒ»¸öasp.netµÄÏîÄ¿£¬ ²»ÖªµÀasp.netÖÐÓÐûÓкÍjavaÖеÄstrutsÀàËÆµÄ¶«Î÷£¬ ¿ÉÒÔÔÚËûµÄ»ù´¡ÉÏ£¬Ö±½Ó¿ª·¢£¬ ЧÂʸߣ¬ ¶øÇÒºÃά»¤ ¡£¡£ лл£¬Ï£Íû´ó¼Ò£¬¶ ......