码迷,mamicode.com
首页 >  
搜索关键字:gtk pixbuf rotate arbitrary angle    ( 2620个结果
Unity3D-数学相关
1. Transform.rotation:对象在世界坐标系下的旋转;Transform.localRotation:对象在父对象的局部坐标系下的旋转。两个变量的类型均为四元素。(1)得到游戏对象当前旋转的角-轴表示 transform.rotation.ToAngleAxis(angle, ax....
分类:其他好文   时间:2014-07-11 18:23:35    阅读次数:251
GDI+ 画渐变色环
在onpaint() 函数中加入如下代码,本次利用DrawArc来实现。 #define PI 3.1415926 int angle=360; int x=(rect.Width()-300)/2; int y=190; int width=300; int hight=300; int wide=34; //for(float i = 0.0; i for(floa...
分类:其他好文   时间:2014-07-11 00:24:19    阅读次数:750
android如何做iphone那种图片抖动动画的效果(包括button和EditText)
给按钮做抖动效果,可以这样做,建立anim文件夹在res下面,创建一个button_shake.xml <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:duration="120" android:fromDegrees="-3" android:pivotX="100...
分类:移动开发   时间:2014-07-10 22:47:01    阅读次数:319
spice-gtk安装
参考文章:spice wiki1: gtk+-3.0安装2: 安装依赖 a:1 sudo apt-get install build-essential autoconf git-core b:1 sudo apt-get install libtool liblog4cpp5-dev libavc...
分类:其他好文   时间:2014-07-09 13:19:08    阅读次数:432
JavaScript SHA-1
1. [文件] webtoolkit.sha1.js ~ 4KB /**** Secure Hash Algorithm (SHA1)* http://www.huiyi8.com/css3/***/function SHA1 (msg) {function rotate_left(n,s) {v....
分类:编程语言   时间:2014-07-09 00:46:00    阅读次数:343
Cracking the Coding Interview Q1.6
Given an image represented by an NxN matrix, where each pixel in the image is 4 bytes, write a method to rotate the image by 90 degrees. Can you do th...
分类:其他好文   时间:2014-07-08 22:06:25    阅读次数:222
QT5 坐标系统
这次基本上没出大的错误。。根据按键向下的功能实现了一下向上的功能,还有旋转rotate()功能 myitem.h #ifndef MYITEM_H #define MYITEM_H #include class myItem : public QGraphicsItem { public: myItem(); QRectF boundingRect() const; ...
分类:其他好文   时间:2014-07-06 09:03:18    阅读次数:227
写一个自定义进度颜色和圆形转动的ProgressBar(详细介绍)
先上图: 我们得自定义ProgressBar的样式 //继承了android横向的ProgressBar的样式 false @drawable/self_define_progress //定义的是背景色 <gradient android:angle="270" android:centerColor="#efe...
分类:其他好文   时间:2014-07-05 11:11:07    阅读次数:346
fedora gtk+ 2.0环境安装配置
1、安装gtk yum install gtk2 gtk2-devel gtk2-devel-docs2、测试是否安装成功 pkg-config --cflags --libs gtk+-2.0执行此命令,看看能否把相应的路径和库显示出来,如果可以,说明安装成功3、写个小测试程序4、编译敲入ma.....
分类:其他好文   时间:2014-07-03 13:20:18    阅读次数:247
BackTrack5 (BT5)无线password破解教程之WPA/WPA2-PSK型无线password破解
昨天公布了BackTrack5 (BT5)无线weppassword破解教程之minidwep-gtk破解法一文,对BT5下破解wep无线password的简单方法做了介绍,今天奶牛为朋友们介绍下怎样在bt5下破解wpa wpa2类型的无线password。前提:安装或者硬盘引导了BT5的gnome...
分类:其他好文   时间:2014-07-02 10:10:30    阅读次数:159
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!