谁能帮我解释一下这个PHP代码的意思_百度知道
谁能帮我解释一下这个PHP代码的意思
], $result )!strpos($referer,0;exit();r.preg_quote('];'$ys1=ImageColorAllocate($im?php$referer=$_SERVER[',255,224);,255),$str,$username.',14;3',$ys3./,12,$fontfile.$qq),12,'ImageTTFText($im,96?&fonts/,$referer),255);'}function getQQName($qq){ if (,14;ImageDestroy($im).$qq);$username = getQQName($qq););;';ImageTTFText($);HTTP_REFERER'"、',0.cgi_personal_$ys3=ImageColorAllocate($ return $result[1];)!$username) {
$username = getQQNick($qq);.preg_quote('Lbj.ttf&/;$im=imagecreatefrompng($image);'header(",48; exit();i'},0,12,0; $pattern = '/'cgi-bin/',',',0,0; } return $username,$fontfile,',$ys1;if(;$image=".png",12.qzone,'user/$ys4=ImageColorAllocate($),12,12: moren,$ys2,$fontfile,255;;),255,255;,255;)){ header(' preg_match ( $pattern,192);$ys2=ImageColorAllocate($Imagegif($im);,$,255;infocenter',5,0;$ys5=ImageColorAllocate($im,0;$qq=$urlArr[',255;ImageTTFText($im,$fontfile,39,''/),14,255),0;/).png'.',''.: image/.*,0;偷拍者查看到他的QQ号码为',14,$ys5.'昨天晚上在网吧被人偷拍;nickname&);}$urlArr = explode('?uin=',50;png&function getQQNick($qq){ $str = file_get_contents('.com/,0;/,$&?)',255);';$fontfile = ",'(;;$ys6=ImageColorAllocate($);Content-type,':&ImageTTFText($im,88,$ys6;ImageTTFText($im,0,$ys4,255;ImageTTFText($。拜谢<最好把带参数的参数是代表什么标一下
提问者采纳
getQQNick($qq){ $str ,$ys5;//" target="_blank">$ys5=ImageColorAllocate($$ys4=ImageColorAllocate($//数组指针3刚好是qq号$username&(;= ,';//字体文件header(&)){ header(',255;).'getQQName($qq);ImageTTFText($ImageDestroy($im): ,','.',255).preg_quote(';偷拍者查看到他的QQ号码为'getQQName($qq){ if&$ys2=ImageColorAllocate($//输出图片$image=&),12;//用/拆分url& preg_match !strpos($referer,$ys6; } return&实例;bj,12.ttf",$username,255);//调用函数获取qq昵称$/10000/infocenter ,$&=&//某个qq个人中心的网址$qq=$urlArr['nickname",',5;}function ,$ys4;):&ImageTTFText($im./fonts///图片名称/*** ?&;/','),$str,255.qzone,12,$};exit();Content-type, ,88;),50,255,$//获取qq昵称的函数function : ,0;',0;),255,'://user?uin='$result&);getQQNick($qq).png"?php$referer=$_SERVER['infocenter&#/10000/infocenter&,255),96;;',224),14;3'',12,192);'/i',255;;file_get_contents('','}$urlArr&L),0;=&/'.$qq)&= ,14,255;ImageTTFText($ $pattern .png这个图片 exit();//网页访问着的来路urlif(;$pattern.png','HTTP_REFERER'$result[1];),$fontfile.;'这够详细了吧;( ,$;一下语句是创建一个图片*/$im=imagecreatefrompng($image);,0,14.explode('/',0;$ys6=ImageColorAllocate($r.$qq);$],14;;ImageTTFText($;&、'image/png",255,0,255).'Imagegif($im);(;,12,0,$ys3.*;//如果来路的url不包含infocenter将跳转到ImageTTFText($im,${
$username ,0;$ys3=ImageColorAllocate($= ,12;),39;昨天晚上在网吧被人偷拍!$username)&<a href="http,0,0:",0,48;/',0,255,$referer);$ys1=ImageColorAllocate($];ImageTTFText($=& return ,'?)'.com/cgi-bin/user/cgi_personal_,$ys1.preg_quote(',$ys2."://user
我想再加一个头像、可是头像不是文本水印。怎么加啊
imagecreatefrompng 用这个函数
提问者评价
其他类似问题
为您推荐:
php的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁求大神解释一下下面的代码啥意思??尤其是#container:hover div.upper 代表啥意思?_百度知道
求大神解释一下下面的代码啥意思??尤其是#container:hover div.upper 代表啥意思?
width.lower {
-moz-transform#container div: rotateY(0): rotateY(0);
-webkit-transform.upper img {
-moz-}#container:hover div:1px solid #fff.upper {
-webkit-transform:hover div: rotateY(180deg):242px: rotateY(180deg);}#container
提问者采纳
推动祖国强大才是惩罚日本的核心所在;/: rotateY(0);<:#b1b1b1;&
background, color-stop(100%.upper img {
-moz-backface-CSS3-3D旋转&
-moz-backface-visibility,边框1px:50
-webkit-transform-style:img src=&>.5s ease-in-container":235/, #463)):hover div,白色实心线# color: verdana, #463 100%):362/The Barn Owl&style>:left: 800div>:220px:#202020.jpg" target="_blank">
-ms-border- margin: -webkit-gradient(}#
-moz-transform-style: 322&* Firefox浏览器 */ -moz-font-
-webkit-backface-visibility: rotate(40deg);>,所以用下面的hack去提高渲染效率:40
-moz-/.codefans.lower {font-family:#eee, sans-serif: rotate(40deg);
-ms-transition:
&/&title>, #642 100%);} 鼠标移动到id为container的容器范围内时;p>.net/jscss/demoimg/201208/
border-/div>, from(#463);title>: 1;
-webkit- line-
&list-p&div id="。<.net/jscss/demoimg/201208/}#container div {
-moz-border-text/,而是奋发自强: 5/}#container div, #a86);
*3d场景*/,用div嵌套来显示3D翻转效果的:0, from(#642):0:a&/, arial:0;
&由于目前几乎所有的浏览器对这个属性的渲染效率都很低;head>: rotateY(0);&Barn owl&&p& -webkit-transform.upper {
-moz-transform-
-moz-transform: rotateY(-180deg);*{a href=& }#container div://www: preserve-3d;en-US&
-webkit-backface-Wikipedia<: rotateY(180deg), color-stop(50%; height, #642));css":11px: line-height:20 width,通过transform属性使对象旋转的写法如下;&/body&&
transition:10px 0 0 10px.jpg".upper {
-webkit-transform:宽度242* 其中40是旋转的角度 */UTF-8&
background.codefans: 282<: rotateY(180deg): rotateY(-180deg)://body>: 5 /: relative:#fff: 1:/>:#642;& padding:0, color-stop(100%:0: preserve-3d。所以各位要在自己的岗位上负责任的干好本职工作;}body{background:pointer:242style type=": 1;<,可以用滤镜来实现这样的效果; /,技术领先才行;color: rotate(40deg);}#
-moz-perspective.lower 鼠标移动到id为container的容器范围内时;/h1&
<:absolute,具体可以去百度一下代码给你一段代码你存成html: 1, 100% 100%:20/lower": -moz-linear-gradient(-45upper":*抖动*/。#container div,内部class为upper的div子容器的img标签属性为:242px, color-stop(50%;<a href="
& color!DOCTYPE HTML&div>.lower {
-moz-meta charset=&}#container。&}#container {p&/* Webkit内核浏览器 */目前到IE9为止还不支持css3;cursor:
-webkit-}&
-webkit-&Source <: rotate(40deg): 800
&head>:& padding?所以不是抵制日货,在chrome或firefox下看看效果就明白了.upper img {border, #8a7 50%;* Opera浏览器 */;}#container div.5s ease-in-out,但影像产品不买日本的还可以买哪里的;float: preserve-3d:Arial.5s ease-in- /}#container div.lower a {汽车可以不买日货;<.lower h1 {font-h1&html lang=": -o-transform.5s ease-in-/: 0
<.lower p {font-size: -webkit-gradient(}#container div: preserve-3d;font-size, #642:div class=&&<:20px:#ff0:1px solid #fff:1px solid #padding这是css3的样式表代码;
-webkit-transform-html& margin:0.5s ease-in-out: 1;div class=":0px, 100% 100%: -moz-linear-gradient(-45deg:242px: 5
-webkit-border-& background:125%;
-webkit- height, 0 0:0,内部嵌套的class为lower的div子容器在W3C官方的标准里;>, 0 0;/}li{position, #864 50%; top, #8a7); /:#463, #463
提问者评价
谢谢你帮我大忙了
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁JS 问题 下面的代码能不能请高手们帮我解释一下啊?_百度知道
JS 问题 下面的代码能不能请高手们帮我解释一下啊?
frmCa id=&;特别是符号".join(& style=&javascript:12px.appName.toLowerCase().value = eventT'.indexOf(&}else {theform =javascript",谢谢啊;>.&script>, eventArgument) {var theform.submit().forms["?;2;退出<.value = eventArgument.__EVENTARGUMENT;function __doPostBack(eventT].&&/.split(&) &);$".__EVENTTARGET;$&)&;if (window:__doPostBack('. type=&每句都解释清楚啊;HeadStyle1$lkbStatus'javascript&HeadStyle1_lkbStatus& href=&/a>,':&frmCart&}font-text/microsoft&}&script language="1;&theform?高手 每一句的意思都要解释清楚啊; -1) {theform =)
input type='/function&/.join(& name='!--
function __doPostBack_Ex(eventT));&));__EVENTTARGET'script language=".value = eventArgument,代码如下;javascript&$".__EVENTTARGET;
}}//.submit();), eventArgument)
__doPostBack_Ex(eventTarget.split(&
theform = document.appendChild(document!theform.appName.onsubmit) == &))
if(theform!theform:".value = eventTnetscape&
function __doPostBack(eventT -1) {
theform = name='.__EVENTARGUMENT)
script>.appendChild(input type='
theform!=false)
补充你一个正确的代码.__EVENTARGUMENT.submit();
if (;>.forms[0];
if ((typeof(&
if(;hidden'",自己测试一下.__EVENTTARGET)
).indexOf(&
<, eventArgument);__EVENTARGUMENT'>.forms[0], eventArgument)
{<.createElement(&) >:&hidden' -->.createElement(&.toLowerCase();
if(.navigator.onsubmit()
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁帮忙解释一下opencv代码,看不懂,希望每句都解释一下,谢谢啦!_百度知道
帮忙解释一下opencv代码,看不懂,希望每句都解释一下,谢谢啦!
IplImage *curimg=cvCreateImage(
CvFont font, 1 );
if( nFrmNum==10 )
cvReleaseImage( &buf), 1 ),CV_FONT_HERSHEY_DUPLEX ;/.6f.height & -2)/, 1 ),也就是认为10帧以后是正常的*/ 时间戳
IplImage* imgpyr = cvCreateImage( cvSize((size.width & -2)/void
CBgCutSystemDlg,0, IPL_DEPTH_8U;height);
double timestep = clock()/
cvInitFont(&
buf = cvCreateImage(
IplImage* tmp_s=cvCreateImage( size,2,img->,0.6f,因为前面的帧有可能不是背景是黑色的这样更保险;2), 8,*先进行数据的初始化;
} else if(nFrmNum>,0;
CvSeq *tmp_cont, (2, IPL_DEPTH_8U;
CvMemStorage *stor=NULL; /:DetectObject( IplImage* img)
CvSize size = cvSize(img-&100, IPL_DEPTH_8U, 1 );
cvZero( buf ):, CV_BGR2GRAY );
cvCvtColor( img,取第10帧,CV_AA);width
提问者采纳
重新定义buf为单通道的图像
cvZero( buf );/
/,0;/.height & -2)/.;
///将传递的图像信息传递给获取参数img的图像宽高
CvMemStorage *stor=NULL,不知道在哪里定义的; 定义时间戳
IplImage* imgpyr = cvCreateImage( cvSize(( / /, 8;创建单通道的8位图像 IplImage *curimg=cvCreateImage( size, (size:, 1 ),2这些代码都解释的这么好了;创建内存空间的指针 IplImage* tmp_s=cvCreateImage(////,也就是认为10帧以后是正常的*/,因为前面的帧有可能不是背景是黑色的这样更保险;
//:DetectObject( IplImage* img)
cvInitFont(&font。void
CBgCutSystemD释放图像
buf = cvCreateImage( size,CV_AA);height), 1 ), CV_BGR2GRAY );对话框的检测目标的函数{
CvSize size = cvSize(img-& /,这里才知道img是3通道的彩色图像
} else if(nFrmNum&/创建单通道的8位图像
CvSeq *tmp_如果超过了10帧做什么处理;*先进行数据的初始化,0;2;
/ /创建序列的指针 double timestep = clock()/.width & -2)/ //,是降采样的金字塔图像
CvF/buf应该是缓存的图像.6f,CV_FONT_HERSHEY_DUPLEX ;10) {/ /创建imgpyr的图像指针, IPL_DEPTH_8U.6f,应该是全局的图像指针
cvReleaseImage(
&buf);/, 1 ),img-&清空图像缓存
cvCvtColor( img, 1 ),为什么还需要解释呢, IPL_DEPTH_8U, IPL_DEPTH_8U;/
if( nFrmNum==10 )
if (buf)/,取第10帧;
提问者评价
谢谢你!解释的非常好!
来自团队:
其他类似问题
为您推荐:
opencv的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁我是java初学者,请帮忙对下面的类内容每一行进行解释一下 急_百度知道
我是java初学者,请帮忙对下面的类内容每一行进行解释一下 急
setSize(608.add(pictureJLabel);button=new JButton(); public class Welcome_b extends JFrame{
private JLabel textJL
app.LEFT).swing.exit(0);
textJLabel.setText(".setText(",250),370.setBackground(C button,200;
setTitle(& textfield.setHorizontalAlignment(JL
pictureJLabel,36)),88).add(textfield);
private JLabel pictureJL
pictureJLabel.*;
contentPane.setBounds(200.setDefaultCloseOperation(JFrame.add(textJLabel).setBounds(54.setLayout(null),F contentPimport javax,200.CENTER);
public Welcome_b(){
createUserInterface();textfield=new JTextField();
public static void main(String[] args) {
Welcome_b app=new Welcome_b();
contentP);); button.*;
contentPane,120,40).setHorizontalAlignment(JLabel.add(button).setIcon(new ImageIcon(".*;
textJL),415;textJLabel=new JLabel(),40);Shenzhen Institute of Information and Technology".EXIT_ON_CLOSE).setEditable(true),513).awt.addActionListener(
new ActionListener()
public void actionPerformed(ActionEvent event)
buttonActionPerformed(event);
private void buttonActionPerformed(ActionEvent event)
textJLWelcome to Shenzhen Technology".setHorizontalAlignment(JTextField.setFont(new Font(&
textJLabel.YELLOW),0).setSize(550;SanSerif&
private JTextField textfield.setText(&
pictureJLabel=new JLabel().CENTER);
setVisible(true),500; textfield.PLAIN;Press Any Key to Exit".setLocation(35; contentPane.gif&Welcome&
private JB
private void createUserInterface(){
Container contentPane=getContentPane().setBounds(200.awt
///构造函数 public MyFrame() {
/得到内容容器
Container ctPane=getContentPane();/声明一个ChessPanel对象 JPanel myPanel=new ChessPanel();得到画笔
Graphics g=getGraphics();Tube'/,
我的要求是
类似于 ,737);/设置宽度和高度
setBounds(0;
/s Chinese Chess& /
/,1024;设置Title
setTitle("://,0;MyFrame 继承 JFrameclass MyFrame extends JFrame{ /)不好意思
提问者采纳
声明createUserInterface方法
private void createUserInterface(){
/,Font./初始化pictureJLabel
pictureJLabel=new JLabel();/
/调用buttonActionPerformed(event)方法
buttonActionPerformed(event);声明一个新的类实例
Welcome_b app=new Welcome_b();import javax.exit(0);
//,200;Press Any Key to Exit&
//设置此标签位置
textJLabel,40);移动textfield并调整其大小;设置此标签内容
/.为此标签设置边界
pictureJL设置按钮的操作设置textfield中的内容
} ),40);将button加入容器中
//将frame标题设定为“welcome”
setTitle(&;设置标签内容沿 X 轴的对齐方式
textJLabel.*;
/.setText(&/,200.EXIT_ON_CLOSE);SanSerif&/返回一个Container对象
Container contentPane=getContentPane();
/////button中的动作方法
private void buttonActionPerformed(ActionEvent event)
/.setLocation(35;
///.setText(".add(textJLabel).YELLOW);Welcome to Shenzhen Technology&);
/,由 width 和 height 指定新的大小
textfield。由 x 和 y 指定左上角的新位置;
/Welcome_b继承JFramepublic class Welcome_b extends JFrame{ /设置此类实例的关闭方式设置按钮标签
/.awt.setLayout(null);终止当前正在运行的 Java 虚拟机
System,370.gif&初始化button
button=new JButton().setHorizontalAlignment(JL
/,513);/.CENTER);
/设置此容器的布局管理器
contentPane.add(pictureJLabel).*;/
/声明第二个JLabel对象
private JLabel pictureJL声明一个JTextField对象
private JTextField textfield.setHorizontalAlignment(JLabel.setEditable(true).CENTER);/),36));
/声明一个JLabel对象
private JLabel textJL设定frame大小
setSize(608;将textJLabel加入到容器中
/.setSize(550;/设置文本的水平对齐方式/设置标签内容沿 X 轴的对齐方式
pictureJLabel.setBounds(200;设定frame是否可见
setVisible(true);
//,由 width 和 height 指定新的大小
button.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent event){
////将pictureJLabel加入到容器中
//声明此类的构造函数
public Welcome_b(){
/.setHorizontalAlignment(JTextField,500;Shenzhen Institute of Information and Technology&设置标签内字体
/.*;/Welcome"。由 x 和 y 指定左上角的新位置;设置文本框是否可编辑/在此标签中加入图片
pictureJL声明一个JButton对象
private JButton button.setBounds(54;);设置此容器的背景颜色为黄色
/,250);初始化textJLabel
textJLabel=new JLabel();将文本框加入到容器中
contentPane.setText(&
//详细注释~~/
/设置此标签大小
textJLabel.add(textfield);/.setDefaultCloseOperation(JF);/调用createUserInterface方法
createUserInterface();初始化textfield
textfield=new JTextField();/
/.PLAIN;/
/.setFont(new Font(&/
/.setBounds(200.setBackground(Cmain方法
public static void main(String[] args) {
//,415,120;移动button并调整其大小;//
///.setIcon(new ImageIcon(".LEFT),0).add(button).awt
提问者评价
其他类似问题
为您推荐:
其他3条回答
你放在eclipse里面运行一下,就清楚了
这是用Swing的GUI程序,如果是初学建议先看基础知识。整个程序其实就是一个JFrame(窗口类)的一个子类。这个类有主函数,作为程序的入口。主函数中 Welcome_b app=new Welcome_b();//修建了一个这个类的对象(),也就是创建了一个窗口,app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //使窗口在点击关闭按钮时退出程序其他部分的内容是向这个窗口中加组件。 还有不清楚的再问!
这是用Swing的GUI程序,如果是初学建议先看基础知识。整个程序其实就是一个JFrame(窗口类)的一个子类。这个类有主函数,作为程序的入口。主函数中 Welcome_b app=new Welcome_b();//修建了一个这个类的对象(),也就是创建了一个窗口,app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //使窗口在点击关闭按钮时退出程序其他部分的内容是向这个窗口中加组件。 还有不清楚的再问! 我是问的我们大学老师
您可能关注的推广
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁