Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print t...
分类:
其他好文 时间:
2015-08-04 15:46:28
阅读次数:
112
<?php
//如果对代码不理解请看我上一篇的详细解答。
//数字验证码:http://my.oschina.net/u/2391943/blog/485163
getValidate(100,30);
function?getValidate($w,$h){
$img?=?imagecreate($w,$h);
$gray?=?...
分类:
Web程序 时间:
2015-07-29 16:03:49
阅读次数:
121
有2种方法第一种是参照新浪开发平台的API 地址如下:http://open.weibo.com/widget/followbutton.php第二种是在html页面引入一段jsuid 是你要关注要关注人的ID,btn 可以设置成red,或者 gray 2种样式类似的也可以添加腾讯空间的关注按钮上面...
分类:
Web程序 时间:
2015-07-26 14:05:14
阅读次数:
128
使用滤镜设置变暗:imageView.setColorFilter(Color.GRAY, PorterDuff.Mode.MULTIPLY);清除:imageView.clearColorFilter();
分类:
其他好文 时间:
2015-07-25 13:40:17
阅读次数:
87
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of ...
分类:
其他好文 时间:
2015-07-25 10:45:07
阅读次数:
114
下面介绍一下重要的几个,设计基本 图片处理 的函数,依次来了解OpenCV的入门知识。具体的详细用法还是以官方的API【Official Tutorials】【Python-OpenCV】为准。imread图片读取函数,用法如下# read image with color
img = cv2.imread("./lena.jpg")# OR read gray image
imgGray = cv...
分类:
其他好文 时间:
2015-07-23 12:04:36
阅读次数:
147
p{
background: gray;
color: white;
padding:10px;
margin:5px;
border: thin solid black;
}
span{
background: white...
分类:
编程语言 时间:
2015-07-22 18:57:00
阅读次数:
207
在Qt中,我们有时需要把QImage类的彩色图片转为灰度图,一开始我想的是用QImage的成员函数convertToFormat(),但是试了好多参数,返现转化的图片都有问题,不是我们想要的灰度图,如果谁用成员函数成功转化成了灰度图,请在评论区将您的方法写下,让博主学习一下。那么还有一种笨办法,就是...
分类:
其他好文 时间:
2015-07-21 06:46:20
阅读次数:
132
//
// main.swift
// 闭包
//
// Created by 朱敏 on 15/6/15.
// Copyright (c) 2015年 helinyu. All rights reserved.
//
import Foundation
let names = ["Lily","Anna","Duty","Poly","Gray"...
分类:
编程语言 时间:
2015-07-19 18:03:22
阅读次数:
151
123456781234567812345678$color:red ,yellow ,blue ,green ,gray ,black ,purple ,orange;@-webkit-keyframes move { 0% { transform: rotateY(0deg)...
分类:
Web程序 时间:
2015-07-18 18:28:36
阅读次数:
119