现在 正在做unity的方向 不得不说我选的是UI方向 Unity中很有名的就是NGUI插件了.今天做了个ngui的简单背包系统。非常简陋。。初学着 自己mark下(1)预览主要就是个 simple popup list控件(为label制作动态字体方便支持中文)设置如图mark为空物体,作为动态生...
分类:
其他好文 时间:
2015-04-14 16:14:05
阅读次数:
171
摘要:使用Bitmap类中的GetPixel(x,y)函数进行指定点颜色的获取,然后再分别获取R,G,B的值
新建一个空的窗体应用程序,在窗体Form1中添加一个Picturebox控件,一个Button控件,三个label标签,三个Textbox控件。
下面是代码,很简单,首先就是选择一个图片,显示在PictureBox控件上 Private Sub btn_ImportPi...
分类:
Web程序 时间:
2015-04-14 10:03:09
阅读次数:
205
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.
OJ's undirected graph serialization:
Nodes are labeled uniquely.
We use # as a separator for each...
分类:
其他好文 时间:
2015-04-13 16:41:28
阅读次数:
135
引言 在客户端开发中,要说出现频率大的控件,必定有textbox的身影.然而在textbox的旁边通常得有个基友label,形影不离.为此,我们都要写两个控件,布局两次,这样麻烦且有点浪费时间.不如,我们做狠点,将它们两个绑在一起算了.简单需求 我们需要的控件该是怎样的.首先,它应该有textb.....
表单zencoding表达式 一次生成三行文本框(带提示信息): form>(.form-group>label[for="examapleForID$"]{filed$}+input[type="text" id="examapleForID$" placeholder="..."].form-control+p.help-block{help-...
分类:
其他好文 时间:
2015-04-12 07:02:00
阅读次数:
146
TextSwitcher的Java Doc是这样描述自己的:
Specialized ViewSwitcher that contains only children of type TextView. A TextSwitcher is useful to animate a label on screen. Whenever setText(CharSequence) is called,...
分类:
移动开发 时间:
2015-04-12 00:06:15
阅读次数:
202
下载
libsvm库下载:http://www.csie.ntu.edu.tw/~cjlin/libsvm/
数据集下载:http://www.csie.ntu.edu.tw/~cjlin/libsvmtools/datasets/
配置设置path:File->set path ->add with subfolders->加入libsvm-3.x文件夹的路径使用>> [label instanc...
分类:
其他好文 时间:
2015-04-11 17:55:30
阅读次数:
165
mLabel1 = [[UILabel alloc]initWithFrame:CGRectMake(0, 20, 10, 1)]; mLabel1.text = @"my label 1, ok , ok , ok "; mLabel1.numberOfLines = 0; [mLabel...
分类:
其他好文 时间:
2015-04-11 16:04:07
阅读次数:
99
继续之前的写。
三、对单个样本进行分类。
'''
function: classify the input sample by voting from its K nearest neighbor
input:
1. the input feature vector
2. the feature matrix
3. the label list
4. the value of k
re...
分类:
编程语言 时间:
2015-04-11 13:17:22
阅读次数:
237
$items、$options都是数组格式
$items是要显示的checkbox array('0'=>'足球', '1'=>'篮球','2'=>'排球')$options是你默认选中的值
array('0'=>1)
field($model, 'chechkbox')->checkboxList($items,$options)->label(false) ?>...
分类:
其他好文 时间:
2015-04-10 22:34:19
阅读次数:
1884