functionTForm1.findimg(pBmpMain,pBmpSub:TBitmap):Boolean;
var
Pmain,psub,ptmp:PByteArray;
x,y,z:Integer;
b:boolean;
begin
result:=false;
b:=false;
fory:=0topBmpMain.Height-pBmpSub.Heightdo
begin
Pmain:=pBmpMain.ScanLine[y];
psub:=pBmpSub.ScanLine[0];
forx:=..
Android Json处理数据有两种形式解析json数据的时候要明确解析是jsonobject 还是jsonarray;1,”名称/值 “ 对的集合又称JSON Object 例如{"width":"800","height":"600"}2,值的有序列表,又称JSONArray{“employe...
分类:
移动开发 时间:
2015-01-18 15:37:11
阅读次数:
152
从H264的裸流中,PPS,SPS中,一定可以获取到的,有图像的宽,高信息。这部分信息的提取,用Stream eye 分析:这里需要特别提一下这两个参数: pic_width_in_mbs_minus1 = 119(1920)pic_height_in_map_units_minus1 = 67(1...
分类:
其他好文 时间:
2015-01-18 13:02:20
阅读次数:
715
从数学角度讲,Point是一个二维矢量,包含两个公共整型属性,属性用大写X和Y(c#中公共属性一般约定以大写字母开头)。当坐标不是整数值是float时,用PointF代替Point使用。 常用的Size和Point结构其实相同,也有两个整型属性Width和Height,也有变体SizeF,但两者使用...
有时候会要验证自己写的正则表达式是否正确所以写了这个小东西:demo:js正则表达式验证html:1 绿色表示匹配,红色表示不匹配2 请在下框填入正则表达式3 4 5 6 请在下框填需要验证的式子7 8 css:1 #regexp,#needtest { height:100px; width:30...
分类:
Web程序 时间:
2015-01-16 22:18:23
阅读次数:
336
常用简洁Tab
<!--
ul{ list-style:none;}
.Tab1{
width:100%;
margin:0px;
padding:0px;
border:1px solid #666666;
}
.Menubox {
width:100%;
height:30px;
line-height:28px;
margin-bottom:5px;
}
.Menubox ul{
mar...
分类:
Web程序 时间:
2015-01-16 20:57:00
阅读次数:
152
(1)布局文件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height...
分类:
移动开发 时间:
2015-01-16 19:18:58
阅读次数:
178
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_p...
分类:
移动开发 时间:
2015-01-16 19:10:00
阅读次数:
147
一、面向对象php:classRectangle
{
private$width;
private$height;
private$color;
publicfunction__construct($width,$height,$color)
{
$this->width=$width;
$this->height=$height;
$this->color=$color;
}
publicfunctionsetColor($color)
{
$this->color=..
分类:
编程语言 时间:
2015-01-16 16:56:28
阅读次数:
183
题目:Given an array where elements are sorted in ascending order, convert it to a height balanced
BST.
思路:给出一个排序的数组,如何构造一个平衡二叉查找树?平衡二叉查找树要求任一结点的左右子树的高度差不能超过一,也叫做高度平衡树。如果让我们从一个排序数组中选取一个元素做树的根,我们会选择哪一个...
分类:
编程语言 时间:
2015-01-16 16:51:25
阅读次数:
237