码迷,mamicode.com
首页 >  
搜索关键字:there is a huge rect    ( 5271个结果
hdu 2795 Billboard
hdu 2795 的传送门–>Problem Description At the entrance to the university, there is a huge rectangular billboard of size h*w (h is its height and w is its width). The board is the place where all possible...
分类:其他好文   时间:2015-08-08 13:38:45    阅读次数:141
Billboard
Problem Description At the entrance to the university, there is a huge rectangular billboard of size h*w (h is its height and w is its width). The board is the place where all possible announcements ...
分类:其他好文   时间:2015-08-08 12:05:48    阅读次数:102
利用图形上下文画线
方式一、// 在这里面绘制,绘图的内容,因为只有在这里面才能获取跟当前view相关联的图形上下文。// 在这个view第一次即将显示的时候调用。// rect 要画图控件的bonds- (void)drawRect:(CGRect)rect{ // 1、获取跟当前控件相关联的图形上下文 ...
分类:其他好文   时间:2015-08-07 00:05:39    阅读次数:116
vc屏幕截图实现
1.获取保存截图文件的路径,暂时选定为桌面 //把截图的文件保存到桌面 virtual BOOL CaptureLolToDesktop(HWND hWnd) { Sleep(1*1000); LPRECT lprc = new RECT; GetWindowRect(hWnd,lprc); std_string strTime; DWORD llocaltime = GetTick...
分类:其他好文   时间:2015-08-06 18:27:18    阅读次数:126
android 图片缩放
import android.content.Context; import android.graphics.Matrix; import android.graphics.Rect; import android.graphics.RectF; import android.graphics.drawable.Drawable; import android.util.AttributeSet...
分类:移动开发   时间:2015-08-06 17:02:18    阅读次数:143
UILabel总结
UILabelUILabel是一个只读文本视图,可以使用该视图创建若干行静态文本。常见属性和方法:1、创建CGRectrect=CGRectMake(100,200,50,50);UILabel*label=[[UILabelalloc]initWithFrame:rect];2、text//设置和读取文本内容,默认为nillabel.text=@”文本信息”;//设置内容NSLog(@..
分类:其他好文   时间:2015-08-06 15:16:26    阅读次数:131
UVA-10692 Huge Mods
题目大意:计算a1^a2^a3^a4......^an模m的值。题目解析:幂取模运算的结果一定有周期。一旦找到周期就可把高次幂转化为低次幂。有降幂公式 (a^x)%m=(a^(x%phi(m)+phi(m))%m x>=phi(m)其中,phi()函数是欧拉函数。代码如下: 1 # ...
分类:其他好文   时间:2015-08-06 14:57:54    阅读次数:165
UI中的控件
这周我们学习了UI,下面是我的一些学习笔记://获得屏幕满屏时的数值CGRectrect=[UIScreenmainScreen].bounds;//创建一个Window让他显示在屏幕上self.window=[[UIWindowalloc]initWithFrame:rect];//设置window的背景颜色self.window.backgroundColor=[UIColorlightGrayColor];..
分类:其他好文   时间:2015-08-06 02:13:06    阅读次数:154
IOS开发——UI进阶篇(十六)Quartz2D实战小例子
一、画线只有在drawRect中才能获取到跟view相关联的上下文- (void)drawRect:(CGRect)rect {}一条线 // 1.获取跟当前View相关联的layer上下文(画板) // 总结:目前获取的所有上下文都是以UIGraphics开头 // CGCont...
分类:移动开发   时间:2015-08-04 22:42:40    阅读次数:287
Seeding--zoj2100
SeedingTime Limit:2 Seconds Memory Limit:65536 KBIt is spring time and farmers have to plant seeds in the field. Tom has a nice field, which is a rect...
分类:其他好文   时间:2015-08-04 20:47:52    阅读次数:126
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!