码迷,mamicode.com
首页 >  
搜索关键字:旋转    ( 7613个结果
Android图片旋转,缩放,位移,倾斜,对称完整示例(一)——imageView.setImageMatrix(matrix)和Matrix
MainActivity如下: import android.os.Bundle; import android.view.MotionEvent; import android.view.View; import android.view.View.OnTouchListener; import android.widget.ImageView; import android.app.Acti...
分类:移动开发   时间:2014-06-29 07:18:53    阅读次数:1336
每日算法之二十九:Search in Rotated Sorted Array
在一个经过旋转后的有序数组中查找一个目标元素。 Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). You are given a target value to search...
分类:其他好文   时间:2014-06-20 13:06:31    阅读次数:261
android小游戏模版—重力感应
好久没更新博客了,今天来谈谈android小游戏———重力感应,一般在游戏里运用的比较多,比如这类游戏有:神庙逃亡,极品飞车,平衡球,三围重力迷宫,重力赛车等。 首先什么是重力感应,重力感应是指现在手机中常用的一个器件,及加速度传感器。当手机静止时,加速度就是重力,所以一般也叫做重力传感器。这个硬件可以感应加速度的变化,转化为数据提供给系统。还有一种传感器是陀螺仪,检测围绕某轴的旋转动作,是利用...
分类:移动开发   时间:2014-06-20 12:03:09    阅读次数:384
Android图片旋转,缩放,位移,倾斜,对称完整示例(二)——Bitmap.createBitmap()和Matrix
MainActivity如下: package cc.c; import android.app.Activity; import android.graphics.Bitmap; import android.graphics.Matrix; import android.graphics.drawable.BitmapDrawable; import android.os.Bundle; ...
分类:移动开发   时间:2014-06-20 10:07:11    阅读次数:265
iOS手动控制界面旋转
手动控制界面旋转的核心思路就是利用UIView的transform属性,旋转App的根视图。何为根视图?如果你的App的window.rootViewController是UINavigationController,那么根视图就是navigationController.view。为了旋转的效果和系统的一致,我们还需要为它添加一个UIView动画。...
分类:移动开发   时间:2014-06-07 15:28:17    阅读次数:242
iOS手势识别的详细使用(拖动,缩放,旋转,点击,手势依赖,自定义手势)
其余的请见:http://blog.csdn.net/totogo2010/article/details/86159401、UIGestureRecognizer介绍手势识别在iOS上非常重要,手势操作移动设备的重要特征,极大的增加了移动设备使用便捷性。iOS系统在3.2以后,为方便开发这使用一些...
分类:移动开发   时间:2014-06-06 22:25:47    阅读次数:264
Android两种旋转Bitmap方法比较
方法1. 利用Bitmap.createBitmap Bitmap adjustPhotoRotation(Bitmap bm, final int orientationDegree) { Matrix m = new Matrix(); m.setRotate(...
分类:移动开发   时间:2014-06-06 21:59:25    阅读次数:236
cocos2dx--- Node 绕Y轴旋转
step += 5; float ra = (float) CC_DEGREES_TO_RADIANS(step); float i = sinf(ra) * pNode->getCamera()->getZEye(); float j = cosf(ra) * pNode->getCamera()...
分类:其他好文   时间:2014-06-06 21:58:49    阅读次数:1731
Js 旋转平滑特效
效果图.源码. 1 2 3 4 5 6 7 8 9 167 效果图.鼠标经过时, 方块会旋转并且移动.
分类:Web程序   时间:2014-06-05 18:21:28    阅读次数:473
CSS3+HTML5特效9 - 简单的时钟
原文:CSS3+HTML5特效9 - 简单的时钟效果演示(加快了100倍)实现原理利用CSS3的transform-origin 及transform 完成以上效果。代码及说明 1 67 68 69 70 71 第2-22行,定义了旋转的中性点及旋转的角度;第23-33行,定义了时针的效果,同时定义...
分类:Web程序   时间:2014-06-05 15:09:57    阅读次数:430
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!