码迷,mamicode.com
首页 >  
搜索关键字:there is a huge rect    ( 5271个结果
android 上下左右都能滑动的是类似scorllview效果
上下左右都能滑动且带平滑效果的类似scorllview 代码:HVScrollView.java package com.yqy.yqy_frame.view; import java.util.List; import android.content.Context; import android.graphics.Rect; import android.os.Handler;...
分类:移动开发   时间:2015-05-10 14:20:40    阅读次数:256
hdu5222 拓扑+并查集
http://acm.hdu.edu.cn/showproblem.php?pid=5222 Problem Description Miceren likes exploration and he found a huge labyrinth underground!  This labyrinth has N caves and some tunnels connec...
分类:其他好文   时间:2015-05-09 22:08:00    阅读次数:211
”赛码杯“ Exploration
Problem DescriptionMiceren likes exploration and he found a huge labyrinth underground!This labyrinth hasNcaves and some tunnels connecting some pairs...
分类:其他好文   时间:2015-05-09 20:22:53    阅读次数:126
利用CPaintDC::IntersectClipRect将绘图限制在局部区域
问题背景:画带坐标的图,例如 画里面那条曲线的时候,希望将绘图区域局限在坐标范围内,范围外的就自动屏蔽掉。 两个方案,一是用CPaintDC的SelectClipRgn函数,感觉略麻烦。另一个函数,就是标题里的IntersectClipRect,感觉更好用些,就一个简单的输入参数rect,搞定。
分类:其他好文   时间:2015-05-09 08:47:24    阅读次数:91
图像处理——二值化
二值化,利用大律法实现自适应二值化,自动求出二值化阈值 int BinarizeImageByOTSU (IplImage * src) { assert(src != NULL); //get the ROI CvRect rect = cvGetImageROI(src); //information of the source image int x = rect.x; ...
分类:其他好文   时间:2015-05-08 13:03:17    阅读次数:130
iOS:绘图画虚线
//此方法目前只能添加在self视图上(如果有视图在self视图上,可能会遮盖线条),画的是虚线 //调用 [self drawRect:self.frame]; //覆写 - (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextBeginPath(...
分类:移动开发   时间:2015-05-07 14:40:33    阅读次数:160
opencv图像像素值读取
说到图像像素,肯定要先认识一下图像中的坐标系长什么样。 1.坐标体系中的零点坐标为图片的左上角,X轴为图像矩形的上面那条水平线;Y轴为图像矩形左边的那条垂直线。该坐标体系在诸如结构体Mat,Rect,Point中都是适用的。(OpenCV中有些数据结构的坐标原点是在图片的左下角,可以设置的)。 2....
分类:其他好文   时间:2015-05-07 10:22:06    阅读次数:501
poj 1266 Cover an Arc.
http://poj.org/problem?id=1266Cover an Arc.Time Limit:1000MSMemory Limit:10000KTotal Submissions:823Accepted:308DescriptionA huge dancing-hall was con...
分类:其他好文   时间:2015-05-07 10:01:30    阅读次数:104
赛码"BestCoder"杯中国大学生程序设计冠军赛1009——邻接表+并查集——Exploration
Problem DescriptionMiceren likes exploration and he found a huge labyrinth underground!This labyrinth hasNcaves and some tunnels connecting some pairs...
分类:其他好文   时间:2015-05-05 18:42:50    阅读次数:205
codeforces 400 C Inna and Huge Candy Matrix【模拟】
题意:给出一个矩形的三种操作,顺时针旋转,逆时针旋转,对称,给出原始坐标,再给出操作数,问最后得到的坐标画一下模拟一下操作就可以找到规律了 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #incl...
分类:其他好文   时间:2015-05-05 15:54:30    阅读次数:128
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!