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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? picture.tcl

?? Linux下的MSN聊天程序源碼
?? TCL
字號:
#This is the TKCximage implementation inside aMSN#By Jerome Gagnon-Voyer gagnonje5000 at mac.comnamespace eval ::picture {	catch {package require TkCximage}		set ::tkcximageloaded 0	#Proc to check if tkcximage is loaded	proc Loaded {} {		global tcl_platform		if {$::tkcximageloaded} {			return 1		} else {			catch {package require TkCximage} err			#Fix a strange bug where sometimes package require TkCximage doesn't work			if {![catch {tk windowingsystem} wsystem] && $wsystem == "aqua"} {				catch {load [file join utils macosx TkCximage TkCximage.dylib]} err			} elseif { $tcl_platform(platform) == "windows"} {				catch {load [file join utils TkCximage TkCximage.dll]} err			} else {				catch {load [file join utils TkCximage TkCximage.so]} err			}						foreach lib [info loaded] {				if { [lindex $lib 1] == "Tkcximage" } {					set ::tkcximageloaded 1					return 1				} 			}		}		#puts "Picture.tcl: TkCximage not loaded\n$err"		return 0			}		#Convert a picture from a file to another file	#The filename decide the new format	proc Convert {original destination} {				#Verify if the picture exists		if { ![file exists $original] } {			status_log "Picture.tcl: Tring to convert file $original that does not exist\n" red			error "Picture.tcl: Tring to convert file $original that does not exist\n"		}		#Convert the picture		if {[::picture::Loaded]} {			#Use TkCxImage			if { [catch { ::CxImage::Convert "$original" "$destination" } res ] } {				status_log "Picture.tcl: Unable to convert picture with TkCximage \n$res" red				error "Picture.tcl: Unable to convert picture with TkCximage \n$res"			} else {				return $destination			}		} 	}		#Resize a picture from a photo	#Strict resize, no ratio here	proc Resize {photo width height} {		if {[::picture::Loaded]} {			if { [catch {::CxImage::Resize $photo $width $height } res] != 0 } {				status_log "Picture.tcl: Unable to resize photo with TkCximage \n$res" red				error "Picture.tcl: Unable to resize photo with TkCximage \n$res"			} else {				return 1			}		}	}		#Reisze a picture from a file, output to another file (in option)	proc ResizeFile {original width height {destination ""}} {		if {$destination == ""} {			set destination $original		}		if { ![file exists $original] } {			status_log "Picture.tcl: Tring to resize file $original that does not exist\n" red			error "Picture.tcl: Tring to resize file $original that does not exist\n"		}		if {[::picture::Loaded]} {			#TkCximage			if { [catch { 				set photo [image create photo [TmpImgName] -file $original -format cximage] ;#gets destroyed				::picture::ResizeWithRatio $photo $width $height 				$photo write $destination 				image delete $photo			} res ] } 	{				status_log "Picture.tcl: Unable to resize picture with TkCximage \n$res" red				error "Picture.tcl: Unable to resize picture with TkCximage \n$res"			} else {				return 1			}		}	}		#Thumbnail a picture, from a photo	#Alpha opacity for border (between 0 and 255)	IT DOESNT SEEM TO WORK YET ?!	#Default color for border is black	proc Thumbnail { photo width height {bordercolor "black"} {alpha ""} } {		if {[::picture::Loaded]} {			if {$alpha == ""} {								if { [catch {::CxImage::Thumbnail $photo $width $height $bordercolor} res] != 0 } {					status_log "Picture.tcl: Unable to create thumbnail with TkCximage \n$res" red					error "Picture.tcl: Unable to create thumbnail with TkCximage \n$res"				}	else {					return 1				}			} else {								if { [catch {::CxImage::Thumbnail $photo $width $height $bordercolor -alpha $alpha} res ] != 0 } {					status_log "Picture.tcl: Unable to create thumbnail with TkCximage \n$res" red					error "Picture.tcl: Unable to create thumbnail with TkCximage \n$res"				} else {					return 1				}							}		}		}		#Crop a picture, from a photo, to a new picture (should be improved)	proc Crop {photo x1 y1 x2 y2} {				if {[::picture::Loaded]} {			set temp [image create photo [TmpImgName]] ;#gets destroyed			if { [catch {$temp copy $photo -from $x1 $y1 $x2 $y2} res] != 0 } {				image delete $temp				status_log "Picture.tcl: Unable to crop image with TkCxImage\n$res" red				error "Picture.tcl: Unable to crop image with TkCxImage\n$res"			} else {				image create photo $photo				$photo copy $temp				image delete $temp				return 1			}		}	}		#Resize a picture from photo to a specific size and keep the ratio	proc ResizeWithRatio {photo width height} {		if {[::picture::Loaded]} {			#Actual size of the photo			set origw [image width $photo]			set origh [image height $photo]			#status_log "picture.tcl: Image size is $origw $origh\n" red						#Actual ratio of the photo			set origratio [expr { 1.0*$origw / $origh } ]			#New ratio			set ratio [expr { 1.0*$height / $width} ]			#status_log "picture.tcl: Original ratio is $origratio and new ratio: $ratio\n" red						#Depending on ratio, resize to keep smaller dimension to XX pixels			if { $origratio > $ratio} {				set resizeh $height				set resizew [expr {round($resizeh*$origratio)}]			} else {				set resizew $width				set resizeh [expr {round($resizew/$origratio)}]			}						#Resize the picture			if { $origw != $width || $origh != $height } {				#status_log "picture.tcl : Will resize to $resizew x $resizeh \n" red					if {[catch {::picture::Resize $photo $resizew $resizeh} res] } {					error $res				}							}						#Now let's crop image from the center			set centerx [expr { [image width $photo] /2 } ]			set centery [expr { [image height $photo] /2 } ]			set halfw [expr { $width / 2}]			set halfh [expr { $height / 2}]			set x1 [expr {$centerx-$halfw}]			set y1 [expr {$centery-$halfh}]			if { $x1 < 0 } {				set x1 0			}			if { $y1 < 0 } {				set y1 0			}						set x2 [expr {$x1+$width}]			set y2 [expr {$y1+$height}]						set neww [image width $photo]			set newh [image height $photo]						#status_log "picture.tcl: Resized image size is $neww $newh\n" red			#status_log "picture.tcl: Center of image is $centerx,$centery, will crop from $x1,$y1 to $x2,$y2 \n" red						if {[catch {::picture::Crop $photo $x1 $y1 $x2 $y2} res]} {				error $res			}						return 1					}	}	#Save a picture to a file, from a photo	#Format supported: "cxgif" "cxpng" "cxjpg" "cxtga"	proc Save {photo destination {format ""}} {		if {[::picture::Loaded]} {			if {$format != ""} {				if { [catch {$photo write $destination -format $format} res] != 0} {					status_log "Picture.tcl: Error Saving to the file with TkCximage : \n$res" red					error "Picture.tcl: Error Saving to the file with TkCximage : \n$res"				} else {					return 1				}			} else {				if { [catch {$photo write $destination} res] != 0} {					status_log "Picture.tcl: Error Saving to the file with TkCximage : \n$res" red					error "Picture.tcl: Error Saving to the file with TkCximage : \n$res"				} else {					return 1				}			}		}	}		#Get picture size and return it with width x height format	proc GetPictureSize { filename } {		if { ![file exists $filename] } {			status_log "Picture.tcl: The file doesn't exists\n" red			error "The file doesn't exists"		}				if {[catch {set img [image create photo [TmpImgName] -file $filename -format cximage]} res]} {			status_log "Picture.tcl::GetPictureSize: $res\n" red			error "$res"		}		set return "[image width $img]x[image height $img]"		image delete $img		return $return	}		#To verify if a picture is animated (1) or not (0)	proc IsAnimated {file {use_cache 1}} {		variable animated_files_cache		if { ![file exists $file] } {			status_log "Picture.tcl: The file doesn't exists $file\n" red			error "Picture.tcl: The file doesn't exists $file"		}		if { [info commands ::CxImage::IsAnimated] == "" } { 			status_log "TkCxImage too old"			msg_box "You need to recompile TkCximage, you use a too old version"			return 0					}		if {$use_cache && [info exists animated_files_cache($file)] } {			return [set animated_files_cache($file)]		}				if { [catch {::CxImage::IsAnimated $file} res] } {			#Corrupted image.. might as well delete it and redownload it some other time..			catch {file delete $file}			status_log "Picture.tcl: Unable to read file $file \n$res" red			error "Picture.tcl: Unable to read file $file \n$res"		} else {			set animated_files_cache($file) $res			return $res		}	}		#Change the colour of the image to the color desired	proc Colorize {photo color {opacity 1.0}} {		if {[::picture::Loaded]} {			if { [catch {::CxImage::Colorize $photo $color $opacity} res] != 0 } {				status_log "Picture.tcl: Unable to colorize photo with TkCximage \n$res" red				error "Picture.tcl: Unable to colorize photo with TkCximage \n$res"			} else {				return 1			}		}	}}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一区二区三区在线| 欧美一区二区高清| 欧美日韩国产免费| 精品对白一区国产伦| 亚洲欧美日韩电影| 国内不卡的二区三区中文字幕| 91在线你懂得| 337p粉嫩大胆色噜噜噜噜亚洲| 亚洲一区二区黄色| 菠萝蜜视频在线观看一区| 精品少妇一区二区| 丝袜美腿成人在线| 99久久久久久99| 久久精品一区二区| 麻豆国产精品官网| 欧美日韩午夜影院| 一区二区三区日韩欧美精品| 波多野结衣中文字幕一区二区三区| 日韩欧美中文字幕精品| 亚洲国产中文字幕| 91国在线观看| 亚洲日本一区二区| 成人成人成人在线视频| 国产欧美一区二区精品婷婷| 韩国欧美一区二区| 欧美一二三四在线| 日韩精品一级中文字幕精品视频免费观看 | 国产欧美一区二区精品性色超碰| 三级久久三级久久| 欧美精品乱码久久久久久按摩| 一区二区三区在线免费播放| 99久久婷婷国产| 中文字幕一区二区三区在线不卡 | 欧美视频一区在线观看| 综合欧美一区二区三区| 91在线观看成人| 亚洲欧美日韩成人高清在线一区| 91免费看`日韩一区二区| 亚洲日本韩国一区| 欧美性猛交一区二区三区精品| 一区二区三区在线播放| 欧美三级在线看| 五月婷婷综合激情| 日韩一区二区在线观看视频播放| 日韩av二区在线播放| 日韩欧美亚洲国产另类| 久久er精品视频| 国产午夜精品久久久久久久| 国产成人精品一区二区三区网站观看| 国产喷白浆一区二区三区| 成人涩涩免费视频| 亚洲欧美日韩电影| 欧美日韩国产免费一区二区| 久久电影网电视剧免费观看| 国产视频在线观看一区二区三区| 成人黄色a**站在线观看| 亚洲综合在线第一页| 91精品国产综合久久久久久久久久| 久久99日本精品| 国产精品嫩草影院com| 在线免费观看日韩欧美| 日本不卡一二三区黄网| 国产亚洲婷婷免费| 欧洲精品一区二区| 美女在线一区二区| 亚洲欧洲色图综合| 91精品免费在线观看| 国产精品一卡二卡在线观看| 亚洲人成网站色在线观看| 欧美精品一级二级三级| 国产91在线|亚洲| 亚洲成人免费影院| 国产日韩欧美不卡| 欧美久久一区二区| 成人免费毛片app| 日韩激情视频在线观看| 国产午夜精品一区二区三区嫩草 | 六月丁香综合在线视频| 国产精品无遮挡| 欧美男生操女生| 成人app在线| 韩国av一区二区| 亚洲一区二区三区视频在线播放 | 日本视频中文字幕一区二区三区| 久久综合久久综合亚洲| 色噜噜狠狠色综合中国| 国产伦精品一区二区三区视频青涩 | 亚洲女人的天堂| 亚洲精品一线二线三线| 在线精品亚洲一区二区不卡| 岛国av在线一区| 久久97超碰色| 日本免费新一区视频| 一区二区三区日韩精品| 国产精品免费丝袜| 一区二区三区在线视频免费| 精品对白一区国产伦| 欧美综合一区二区三区| 97se狠狠狠综合亚洲狠狠| 国产美女视频一区| 激情久久五月天| 免费av网站大全久久| 亚洲一二三专区| 亚洲精品伦理在线| 中文字幕视频一区| 日本一区二区三区视频视频| 26uuu国产日韩综合| 日韩你懂的电影在线观看| 欧美日韩日本视频| 欧美色精品天天在线观看视频| www.性欧美| 成人禁用看黄a在线| 丰满亚洲少妇av| 成人一区二区在线观看| 国产成人在线观看免费网站| 国产一区二区三区四区五区入口| 麻豆国产欧美日韩综合精品二区| 日韩激情视频在线观看| 青青草97国产精品免费观看| 天天射综合影视| 日韩国产欧美在线视频| 男男视频亚洲欧美| 乱中年女人伦av一区二区| 国产在线一区观看| 国内外成人在线视频| 国产成人啪免费观看软件| 国产成人在线影院| 99九九99九九九视频精品| 91原创在线视频| 欧美三级韩国三级日本一级| 欧美日韩免费电影| 日韩欧美国产wwwww| 久久人人爽人人爽| 中文字幕欧美区| 一区二区三区在线不卡| 天天色综合成人网| 极品少妇xxxx精品少妇| 福利电影一区二区三区| 色8久久精品久久久久久蜜| 欧美日韩在线亚洲一区蜜芽| 日韩视频在线一区二区| 久久久亚洲国产美女国产盗摄 | 3d动漫精品啪啪| 精品精品国产高清一毛片一天堂| 久久久久久亚洲综合影院红桃| 国产精品国产三级国产专播品爱网| 亚洲另类一区二区| 久久精品国产亚洲a| 成人爱爱电影网址| 欧美三级在线看| 中文字幕日韩一区| 日韩精品一级二级 | 91丨porny丨国产| 91精品国产综合久久小美女| 国产亚洲欧洲997久久综合| 亚洲激情一二三区| 寂寞少妇一区二区三区| 色偷偷一区二区三区| 欧美本精品男人aⅴ天堂| 中文字幕一区二区三区在线播放| 日韩经典中文字幕一区| 99在线精品免费| 欧美电影免费观看完整版| 综合久久国产九一剧情麻豆| 日本欧美一区二区| www.综合网.com| 欧美岛国在线观看| 亚洲国产综合在线| 成人激情图片网| 日韩欧美国产一区二区在线播放| 亚洲另类春色国产| 成人精品一区二区三区四区| 91精品国产综合久久精品图片| 中文字幕视频一区| 国产一区二区三区四区五区入口| 欧美日韩国产经典色站一区二区三区| 亚洲国产精品精华液2区45| 日韩精品久久理论片| 色婷婷综合久久久久中文一区二区 | 91精品国产一区二区| 国产精品久久精品日日| 免费成人av在线播放| 欧美性大战久久| 综合久久给合久久狠狠狠97色| 精品一区二区免费看| 欧美日韩国产三级| 一级精品视频在线观看宜春院| 国产凹凸在线观看一区二区| 欧美成人性战久久| 蜜臀av一区二区三区| 欧美日韩久久一区| 成人免费黄色大片| 久久久久88色偷偷免费| 麻豆成人免费电影| 日韩女优毛片在线| 久久精品国产99国产精品| 日韩午夜av一区| 看电影不卡的网站| 精品久久国产老人久久综合| 久久99精品国产麻豆婷婷洗澡|