亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? imageobject.cfc

?? 這是一個BBS系統
?? CFC
字號:
<cfcomponent name="ImageObject">
<!---
	ImageObject.cfc written by Rick Root (rick@webworksllc.com)

	Related Web Sites:
	- http://www.opensourcecf.com/imagecfc (home page)


	This is an object oriented interface to the original
	ImageCFC.

	Example Code:

	io = createObject("component","ImageObject");
	io.setOption("defaultJpegCompression",95);
	io.init("#ExpandPath(".")#/emily.jpg");
	io.scaleWidth(500);
	io.save("#ExpandPath(".")#/imagex1.jpg");

	io.flipHorizontal();
	io.save("#ExpandPath(".")#/imagex2.jpg");
	io.revert();
	io.filterFastBlur(2,5);
	io.save("#ExpandPath(".")#/imagex3.jpg");
	io.revert();
	io.filterPosterize(32);
	io.save("#ExpandPath(".")#/imagex4.jpg");


	LICENSE
	-------
	Copyright (c) 2006, Rick Root <rick@webworksllc.com>
	All rights reserved.

	Redistribution and use in source and binary forms, with or
	without modification, are permitted provided that the
	following conditions are met:

	- Redistributions of source code must retain the above
	  copyright notice, this list of conditions and the
	  following disclaimer.
	- Redistributions in binary form must reproduce the above
	  copyright notice, this list of conditions and the
	  following disclaimer in the documentation and/or other
	  materials provided with the distribution.
	- Neither the name of the Webworks, LLC. nor the names of
	  its contributors may be used to endorse or promote products
	  derived from this software without specific prior written
	  permission.

	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
	CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
	MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
	DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
	CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
	SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
	BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
	LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
	HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
	OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--->

<cfset variables.img = "">
<cfset variables.revertimg = "">
<cfset variables.imageCFC = createObject("component","image")>
<cfset variables.imageInfo = structNew()>
	<cfset variables.imageInfo.width = 0>
	<cfset variables.imageInfo.height = 0>
	<cfset variables.imageInfo.colorModel = "">
	<cfset variables.imageInfo.colorspace = "">
	<cfset variables.imageInfo.objColorModel = "">
	<cfset variables.imageInfo.objColorspace = "">
	<cfset variables.imageInfo.sampleModel = "">
	<cfset variables.imageInfo.imageType = 0>
	<cfset variables.imageInfo.misc = "">
	<cfset variables.imageInfo.canModify = false>
<cfset variables.imageCFC.setOption("throwonerror",true)>

<!---

	init(filename)        Initialize object from a file.
	init(width, height)   Initialize with a blank image
	init(bufferedImage)   Initiailize with an existing object
--->
<cffunction name="init" access="public" output="false" returnType="void">
	<cfargument name="arg1" type="any" required="yes">
	<cfargument name="arg2" type="any" required="no">

	<cfif isDefined("arg2") and isNumeric(arg1) and isNumeric(arg2)>
		<cfset arg1 = javacast("int",int(arg1))>
		<cfset arg2 = javacast("int",int(arg2))>
		<cfset variables.img = createObject("java","java.awt.image.BufferedImage")>
		<cfset variables.img.init(arg1,arg2,variables.img.TYPE_INT_RGB)>
	<cfelseif arg1.getClass().getName() eq "java.awt.image.BufferedImage">
		<cfset variables.img = arg1>
	<cfelseif isSimpleValue(arg1) and len(arg1) gt 0>
		<cfset imageResults = variables.imageCFC.readImage(arg1, "no")>
		<cfset variables.img = imageResults.img>
	<cfelse>
		<cfthrow message="Object Instantiation Error" detail="You have attempted to initialize ooimage.cfc with invalid arguments.  Please consult the documentation for correct initialization arguments.">
	</cfif>
	<cfif variables.revertimg eq "">
		<cfset variables.revertimg = variables.img>
	</cfif>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>
	<cfreturn>
</cffunction>

<cffunction name="flipHorizontal" access="public" output="true" returnType="void" hint="Flip an image horizontally.">
	<cfset var imageResults = imageCFC.flipHorizontal(variables.img,"","")>
	<cfset variables.revertimg = variables.img>
	<cfset variables.img = imageResults.img>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>
</cffunction>

<cffunction name="getImageInfo" access="public" output="true" returntype="struct" hint="Returns image information.">
	<cfreturn variables.imageInfo>
</cffunction>
<cffunction name="getImageObject" access="public" output="true" returntype="struct" hint="Returns a java Buffered Image Object.">
	<cfreturn variables.img>
</cffunction>

<cffunction name="flipVertical" access="public" output="true" returntype="void" hint="Flop an image vertically.">
	<cfset var imageResults = imageCFC.flipVertical(variables.img,"","")>
	<cfset variables.revertimg = variables.img>
	<cfset variables.img = imageResults.img>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>
</cffunction>

<cffunction name="scaleWidth" access="public" output="true" returntype="void" hint="Scale an image to a specific width.">
	<cfargument name="newWidth" required="yes" type="numeric">
	<cfset var imageResults = imageCFC.scaleWidth(variables.img,"","", newWidth)>
	<cfset variables.revertimg = variables.img>
	<cfset variables.img = imageResults.img>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>

</cffunction>

<cffunction name="scaleHeight" access="public" output="true" returntype="void" hint="Scale an image to a specific height.">
	<cfargument name="newHeight" required="yes" type="numeric">
	<cfset var imageResults = imageCFC.scaleHeight(variables.img,"","", newHeight)>
	<cfset variables.revertimg = variables.img>
	<cfset variables.img = imageResults.img>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>
</cffunction>

<cffunction name="resize" access="public" output="true" returntype="void" hint="Resize an image to a specific width and height.">
	<cfargument name="newWidth" required="yes" type="numeric">
	<cfargument name="newHeight" required="yes" type="numeric">
	<cfargument name="preserveAspect" required="no" type="boolean" default="FALSE">
	<cfargument name="cropToExact" required="no" type="boolean" default="FALSE">

	<cfset var imageResults = imageCFC.resize(variables.img,"","",newWidth,newHeight,preserveAspect,cropToExact)>
	<cfset variables.revertimg = variables.img>
	<cfset variables.img = imageResults.img>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>
</cffunction>

<cffunction name="crop" access="public" output="true" returntype="void" hint="Crop an image.">
	<cfargument name="fromX" required="yes" type="numeric">
	<cfargument name="fromY" required="yes" type="numeric">
	<cfargument name="newWidth" required="yes" type="numeric">
	<cfargument name="newHeight" required="yes" type="numeric">
	<cfset var imageResults = imageCFC.crop(variables.img,"","",fromX,fromY,newWidth,newHeight)>
	<cfset variables.revertimg = variables.img>
	<cfset variables.img = imageResults.img>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>

</cffunction>

<cffunction name="rotate" access="public" output="true" returntype="void" hint="Rotate an image (+/-)90, (+/-)180, or (+/-)270 degrees.">
	<cfargument name="degrees" required="yes" type="numeric">
	<cfset var imageResults = imageCFC.rotate(variables.img,"","",degrees)>
	<cfset variables.revertimg = variables.img>
	<cfset variables.img = imageResults.img>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>

</cffunction>

<cffunction name="setOption" access="public" output="true" returnType="void" hint="Sets values for allowed CFC options.">
	<cfargument name="key" type="string" required="yes">
	<cfargument name="val" type="string" required="yes">
	<cfif lcase(trim(key)) eq "throwonerror">
		<cfthrow message="Option Configuration Error" detail="You cannot set the throwOnError option when using ImageObject.cfc">
	</cfif>
	<cfset imageCFC.setOption(key, val)>

</cffunction>

<cffunction name="getOption" access="public" output="true" returnType="any" hint="Returns the current value for the specified CFC option.">
	<cfargument name="key" type="string" required="yes">
	<cfreturn imageCFC.getOption(key)>
</cffunction>

<cffunction name="filterFastBlur" access="public" output="true" returntype="void" hint="Internal method used for flipping and flopping images.">
	<cfargument name="blurAmount" required="yes" type="numeric">
	<cfargument name="iterations" required="yes" type="numeric">
	<cfset var imageResults = imageCFC.filterFastBlur(variables.img,"","",blurAmount,iterations)>
	<cfset variables.revertimg = variables.img>
	<cfset variables.img = imageResults.img>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>

</cffunction>

<cffunction name="filterSharpen" access="public" output="true" returntype="void" hint="Internal method used for flipping and flopping images.">
	<cfset var imageResults = imageCFC.filterSharpen(variables.img,"","")>
	<cfset variables.revertimg = variables.img>
	<cfset variables.img = imageResults.img>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>

</cffunction>


<cffunction name="filterPosterize" access="public" output="true" returntype="void" hint="Internal method used for flipping and flopping images.">
	<cfargument name="amount" required="yes" type="string">
	<cfset var imageResults = imageCFC.filterPosterize(variables.img,"","",amount)>
	<cfset variables.revertimg = variables.img>
	<cfset variables.img = imageResults.img>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>
</cffunction>


<cffunction name="addText" access="public" output="true" returntype="void" hint="Add text to an image.">
	<cfargument name="x" required="yes" type="numeric">
	<cfargument name="y" required="yes" type="numeric">
	<cfargument name="fontDetails" required="yes" type="struct">
	<cfargument name="content" required="yes" type="String">
	<cfset var imageResults = imageCFC.addText(variables.img,"","",x,y,fontDetails,content)>
	<cfset variables.revertimg = variables.img>
	<cfset variables.img = imageResults.img>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>

</cffunction>

<cffunction name="watermark" access="public" output="false" returnType="void">
	<cfargument name="wmImage" required="yes" type="Any">
	<cfargument name="alpha" required="yes" type="numeric">
	<cfargument name="placeAtX" required="yes" type="numeric">
	<cfargument name="placeAtY" required="yes" type="numeric">

	<cfset var imageResults = "">
	<cfif isSimpleValue(wmImage)>
		<!--- filename or URL --->
		<cfset imageResults = imageCFC.watermark(variables.img,"","",wmImage,alpha,placeAtX,placeAtY)>
	<cfelse>
		<!--- must be a java object --->
		<cfset imageResults = imageCFC.watermark(variables.img,wmImage,"","",alpha,placeAtX,placeAtY)>
	</cfif>
	<cfset variables.revertimg = variables.img>
	<cfset variables.img = imageResults.img>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>

</cffunction>

<cffunction name="save" access="public" output="false" returnType="void">
	<cfargument name="filename" type="string" required="no">
	<cfargument name="jpegCompression" type="numeric" required="no">
	<cfif isDefined("arguments.jpegCompression") and isNumeric(arguments.jpegCompression)>
		<cfset imageCFC.writeImage(filename,variables.img,jpegCompression)>
	<cfelse>
		<cfset imageCFC.writeImage(filename,variables.img)>
	</cfif>
</cffunction>

<cffunction name="revert" access="public" output="true" returntype="void" hint="Undo the previous manipulation.">
	<cfset variables.img = variables.revertimg>
	<cfset variables.imageInfo = imageCFC.getImageInfo(variables.img,"")>
</cffunction>

</cfcomponent>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99精品黄色片免费大全| 欧美性xxxxxxxx| 国产亚洲一区二区在线观看| 午夜天堂影视香蕉久久| 欧美精品xxxxbbbb| 久久国产精品99精品国产| 久久久噜噜噜久噜久久综合| 国产精品一二三在| 一区二区三区在线不卡| 欧美挠脚心视频网站| 精品一区二区三区在线观看国产| 国产色91在线| 精品视频1区2区| 风流少妇一区二区| 三级影片在线观看欧美日韩一区二区| 欧美电影免费观看高清完整版在| 懂色av一区二区三区免费看| 一区二区三区四区视频精品免费| 91精品国产免费| 97aⅴ精品视频一二三区| 首页国产欧美日韩丝袜| 国产精品国产精品国产专区不片| 精品视频免费在线| 色天天综合久久久久综合片| 精品一区二区三区香蕉蜜桃 | 欧美一区三区四区| 成人综合激情网| 国产精品正在播放| 看电影不卡的网站| 麻豆视频观看网址久久| 亚洲精品视频一区| 亚洲日本va午夜在线电影| 国产午夜精品久久久久久久| 欧美一区二区三区人| 日韩一二三区视频| 在线不卡的av| 精品美女在线播放| 日韩欧美一区二区视频| 91精品在线免费| 日韩亚洲电影在线| 日韩精品资源二区在线| 欧美一区二区三区白人| 欧美一区二区三区不卡| 26uuu亚洲| 国产精品久久久久aaaa樱花 | 亚洲综合在线第一页| 香蕉久久夜色精品国产使用方法| 亚洲一区免费视频| 精品一区二区在线看| 国产成人午夜电影网| 国产精品毛片久久久久久| 国产一区二区在线影院| 国产精品一区二区久激情瑜伽| 国内外精品视频| 91国产免费观看| 欧美一区二区在线免费播放 | 日本电影欧美片| 制服.丝袜.亚洲.另类.中文| 日本一区二区三区久久久久久久久不| 中文字幕一区二区5566日韩| 午夜亚洲福利老司机| 婷婷综合久久一区二区三区| 风间由美一区二区av101| 欧美高清激情brazzers| 国产精品美女一区二区三区| 免费一区二区视频| 97se亚洲国产综合在线| 国产人成亚洲第一网站在线播放 | 欧美一区二区黄| 亚洲欧美视频在线观看| 国产91对白在线观看九色| 欧美一区中文字幕| 毛片av中文字幕一区二区| 国产一区二区剧情av在线| 久久久久久影视| 美腿丝袜亚洲三区| 在线不卡中文字幕| 亚洲综合在线免费观看| 欧美亚洲综合色| 午夜久久电影网| 91精品久久久久久蜜臀| 日韩成人午夜精品| 欧美老肥妇做.爰bbww视频| 亚洲精品一二三四区| 91精彩视频在线观看| 综合激情网...| 一本一道波多野结衣一区二区| 国产女人18毛片水真多成人如厕| 国产精品一区在线观看乱码| 久久免费偷拍视频| 色激情天天射综合网| 天堂久久一区二区三区| 精品福利一区二区三区免费视频| 久久www免费人成看片高清| 国产精品伦一区| 欧美日韩美少妇| 国产精品一区三区| 亚洲一区二区三区中文字幕在线| 欧美一级免费大片| 岛国精品在线观看| 美洲天堂一区二卡三卡四卡视频| 中文字幕一区日韩精品欧美| 精品视频一区 二区 三区| 精品写真视频在线观看| 亚洲一区二区欧美| 国产午夜精品一区二区| 欧美一区二区三区精品| 波多野结衣视频一区| 精油按摩中文字幕久久| 一区二区三区在线播| 中文字幕一区在线观看视频| 欧美成人福利视频| 日韩一区和二区| 欧美日韩精品系列| 精品91自产拍在线观看一区| 亚洲综合精品久久| 欧美猛男男办公室激情| 欧美亚洲国产一区在线观看网站| 久久99热这里只有精品| 天天综合网天天综合色| 亚洲精品视频免费看| 亚洲男人天堂av| 一区二区三区四区五区视频在线观看| 国产精品区一区二区三区| 久久精品人人做人人爽人人| 欧美激情一区二区三区四区 | 成人免费高清在线| 懂色av中文一区二区三区| 91伊人久久大香线蕉| 色欧美88888久久久久久影院| 99视频一区二区| 欧美一区永久视频免费观看| 欧美zozo另类异族| 一区二区三区中文字幕电影| 香蕉影视欧美成人| 高清在线不卡av| 色婷婷国产精品| 久久久亚洲精华液精华液精华液 | 国产在线精品一区在线观看麻豆| 久久er精品视频| 欧美日韩精品免费| 综合久久久久久| 国产一区二区三区电影在线观看| 91原创在线视频| 日本一区二区免费在线观看视频| 亚洲欧美自拍偷拍色图| 六月丁香婷婷色狠狠久久| 97se狠狠狠综合亚洲狠狠| 日韩欧美一级精品久久| 亚洲国产精品久久人人爱| 国产成人精品免费看| 日韩欧美色电影| 视频一区二区不卡| 欧美日韩国产小视频| 国产精品无人区| 九色综合国产一区二区三区| 欧美在线free| 亚洲午夜羞羞片| 欧美精品丝袜中出| 亚洲国产成人精品视频| 欧美亚洲综合另类| 午夜精品福利一区二区三区av | 欧美大片日本大片免费观看| 亚洲午夜精品在线| 欧美日韩mp4| 天天综合色天天综合色h| 91精品欧美综合在线观看最新| 有码一区二区三区| 56国语精品自产拍在线观看| 免费高清在线一区| 欧美变态口味重另类| 丰满少妇久久久久久久| 中文字幕av一区二区三区高| 成人少妇影院yyyy| 亚洲丰满少妇videoshd| 欧美不卡在线视频| 成人av电影在线| 亚洲.国产.中文慕字在线| 日韩欧美中文字幕一区| 成人不卡免费av| 舔着乳尖日韩一区| 中文字幕日韩一区| 91网上在线视频| 精品一区二区影视| 亚洲成精国产精品女| 中文字幕中文在线不卡住| 欧美疯狂性受xxxxx喷水图片| 国产电影精品久久禁18| 亚洲国产乱码最新视频| 欧美电影免费观看完整版| 一区二区三区资源| 精品国产免费一区二区三区香蕉 | 亚洲精品视频在线| 亚洲精品在线免费观看视频| 日本国产一区二区| 91精品福利在线| 欧美日韩国产一二三| 91福利在线免费观看| 99精品久久只有精品| 粉嫩13p一区二区三区|