一.获取图片1. NSString *path = [[NSBuddle mainBuddle] pathForResource:@"resourceName" oftype@"resourceType"]; UIImage *image = [[UIImageimageWithContent...
分类:
其他好文 时间:
2014-08-31 13:06:31
阅读次数:
175
PE文件结构详解(二)可执行文件头的最后展示了一个数组,PE文件结构详解(三)PE导出表中解释了其中第一项的格式,本篇文章来揭示这个数组中的第二项:IMAGE_DIRECTORY_ENTRY_IMPORT,即导入表。也许大家注意到过,在IMAGE_DATA_DIRECTORY中,有几项的名字都和导入...
分类:
其他好文 时间:
2014-08-31 11:48:01
阅读次数:
228
题意:给定一个 n * n 的二维图像,将该图像顺时针旋转 90 度
思路:
先沿副对角线翻转一次,再沿水平中线翻转一次
复杂度:时间O(n^2),空间O(1)
void rotate(vector<vector > &matrix){
int n = matrix.size();
//沿副对角线翻转
for(int i = 0; i < n; ++i){
for(int j = 0; j < n - i; ++j){
int i2 = n - 1 - j, j2 = n - ...
分类:
其他好文 时间:
2014-08-30 16:29:09
阅读次数:
182
[table]@echo ' zImage - Compressed kernel image' android.mk里面加打印信息:$(warning TEXT......)这个函数被执行的时候,会输出:TEXT......,但是make会继续执行下去。$(error TEXT......)这.....
分类:
移动开发 时间:
2014-08-30 16:22:09
阅读次数:
200
makefile里面加打印:
[table]@echo ' zImage - Compressed kernel image'
android.mk里面加打印信息:
$(warning TEXT......)
这个函数被执行的时候,会输出:TEXT......,但是make会继续执行下去。
$(error TEXT.........
分类:
移动开发 时间:
2014-08-30 12:40:09
阅读次数:
223
GLuint Texture[1];HBITMAP hBMP;BITMAP BMP;glGenTextures(1, &Texture[0]);hBMP = (HBITMAP)LoadImage(NULL, L"xxx.bmp", IMAGE_BITMAP, 0, 0, LR_CREATEDIBSE...
分类:
其他好文 时间:
2014-08-29 21:19:38
阅读次数:
339
filter2DConvolves an image with the kernel.C++:voidfilter2D(InputArraysrc, OutputArraydst, intddepth, InputArraykernel, Pointanchor=Point(-1,-1), doub...
分类:
编程语言 时间:
2014-08-29 18:13:58
阅读次数:
255
在AIX 上MOUNT *.ISO镜像文件
1、建立一个文件系统,大小和ISO image相同或者大些。
#crfs -v jfs2 -g datavg -a size=1G -m /iso
2.修改文件系统的属性:
#chfs -a vfs=cdrfs /iso
#chfs -p ro /iso
3.确定新增加的文件系统的逻辑卷设备名:
#lsfs /iso
(假设为...
分类:
其他好文 时间:
2014-08-29 16:11:08
阅读次数:
251
http://wiki.openwrt.org/doc/howtobuild/wireless-router-with-a-3g-dongleBuilding image with support for 3g/4g and usb tetheringPreparing build environm...
分类:
其他好文 时间:
2014-08-29 14:36:37
阅读次数:
893