变态重口极致另类在线-波多久久夜色精品国产-波多野结衣在线观看一区-波多野结衣在线观看一区二区-污污的网站免费阅读-污污视频网址

當前位置:首頁文章首頁 IT學(xué)院 IT技術(shù)

教你如何使用ASP Image

作者:  來源:  發(fā)布時間:2011-6-13 15:11:09  點擊:

這篇文章跟大家主要介紹到的是關(guān)于ASP Image 使用范例,希望能對大家有用。

使用ASPImage組件僅需以下步驟:
  
  建一個對象
  設(shè)置若干屬性
  調(diào)用SaveImage方法
  以下代碼舉例說明如何在vbscript中使用ASPImage組件,在這個例子中我們要建立一個漸進填充的字樣為 "welcome to"的文字圖片:
  Set Image = Server.CreateObject("AspImage.Image")
  
  rem Set various font parameters
  Image.FontColor = vbBlack
  Image.Italic = True
  Image.Bold = True
  Image.FontName = "Arial"
  Image.FontSize = 12
  Image.PadSize = 10
  
  rem Calculate how big our text info is and set the image to this size
  remThis has to be done since we want to fill the area with a gradient
  strMessage = "Welcome to"
  Image.MaxX = Image.TextWidth (strMessage)
  Image.MaxY = Image.TextHeight (strMessage)
  
  rem Create a one way gradient
  Image.GradientOneWay vbRed, vbWhite, 0
  
  rem Print our string to the image
  Image.TextOut strMessage, Image.X, Image.Y, false
  
  rem Set the filename and save
  remNOTE: You should gen the filename dynamically for multiuser usage
  Image.FileName = "d:inetpubwwwrootimagesmsg1.jpg"
  if Image.SaveImage then
  rem The image was saved so write the <img src> tag out for the browser to pick up
  Response.Write "<img src="http://www.ddvip.net/web/ASP/searches/"/images/msg1.jpg""><br>"
  else
  rem Something happened and we couldn't save the image so just use an HTML header
  remWe need to debug the script and find out what went wrong
  Response.Write "<h2>Welcome to</h2>
  end if 

  通過使用SaveImage方法我們可以得知圖片是否已經(jīng)正確保存了。一般導(dǎo)致圖片不能正確保存的原因是圖片的保存路徑不合法或者對該路徑?jīng)]有寫的權(quán)限。
  
  GIF Animations
  圖片能被加載或進行處理,并且可以通過調(diào)用AddImage方法將這些修改保存到一個活動順序的動畫中。在soianim.asp中有個簡單的GIF動畫例子,這個文件已打包到ASPImage的ZIP文件中。

相關(guān)軟件

相關(guān)文章

文章評論

軟件按字母排列: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
主站蜘蛛池模板: 欧美视频综合 | 国产精品人成 | 免费综合网| 黄色高清在线观看 | 午夜亚洲国产成人不卡在线 | 日韩a无v码在线播放免费 | 狠狠干老司机 | 天天爱天天色天天干 | 18级成人毛片免费观看 | 日韩一级黄色片 | 亚洲欧美日本韩国综合在线观看 | www.99热.com| 三级黄色日本 | 成人综合久久综合 | 一二三四在线视频社区1 | 国产成人精品福利网站在线观看 | 午夜精品福利影院 | 真人一级毛片免费完整视 | 日日干日日操日日射 | 欧美成人免费xxx大片 | 欧美国产永久免费看片 | sis人成在线视频 | 亚洲伊人成综合网 | 伊人中文字幕在线观看 | 国产亚洲综合一区 柠檬导航 | 丁香六月 久久久 | 成人免费视频一区二区三区 | 国产日韩欧美在线一二三四 | 人人做人人爽人人爱 | 久久激情视频 | 国产特黄特色的大片观看免费视频 | 本道久久综合88全国最大色 | 97欧美在线看欧美视频免费 | 亚洲不卡视频 | 久久精品观看影院2828 | 国产欧美日韩看片片在线人成 | 有哪些免费的毛片可以看 | 亚洲综合91 | 曰本a| 窝窝免费午夜视频一区二区 | 国产日韩欧美一区二区三区视频 |