android`s camera can callback the video source by byte[] module.

sometimes we need to totate the image in a prerequisite for knowing the width and height .

Like this:

 byte[] rotateImage =new byte[length]; int width =size.width; int height = size.height; for (int i = 0; i < width; i++) { for (int j = 0; j < height; j++) { rotateImage[height*i+j] = data[width*j+i]; } }


更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. Android Bander设计与实现 - 设计篇
  2. Android Messenger 进程间通信
  3. Android(安卓)选择图片与视频
  4. android java.util.ConcurrentModificati
  5. Android实现widget定时更新
  6. Android zip文件压缩解压缩
  7. android json
  8. Android Material Design(7) 转场动画的
  9. android 代码 退出程序
  10. android mediaplayer SurfaceView