没有合适的资源?快使用搜索试试~ 我知道了~
基于android的绘图软件开发(1).doc
0 下载量 127 浏览量
2023-07-07
13:20:18
上传
评论
收藏 2.3MB DOC 举报
温馨提示
试读
77页
基于android的绘图软件开发(1).doc
资源推荐
资源详情
资源评论
浙江大学硕士学位论文 摘要
i
硕士学位论文
基于 Android 的绘图软件开发
浙江大学硕士学位论文 摘要
ii
摘要
Android 是 Google 于 2007 年发布的一款开源手机操作系统,由于 Android 最
近几年的软件和硬件高速发展,越来越多的人开始使用 Android 并作为娱乐和工
作平台。与此同时随着现代绘图软件的发展,这使得通过数码手段复制自然绘画
体验成为可能,传统意义上的纸上作图已经失去优势。但是,目前 Android 平台
并没有很多具有很好绘图效果的绘画工具应用。考虑到 Android 绘图软件的开发
价值和很好的应用前景,本文主要研究基于 Android 移动平台的绘图软件开发。
本文所做的研究工作主要在以下几个方面:
1. 将开源绘图软件 MyPaint 的笔刷引擎以 Java 语言重写并移植到 Android
平台,并以此引擎进行本文的 Android 绘图软件的开发。
2. 将开源视频编码库 FFMPEG 成功移植到 Android 平台,利用此库进行用
户绘画过程的录制,并生成 MP4 格式的视频。
3. 分析了 Android 底层开发的原理和方法,探讨了一种利用 JNI 机制进行
Android 底层 c/c++开发技术。
4. 实现了 Android 绘图软件的开发。
关键词: Android, MyPaint, FFMPEG, NDK, 绘图软件
浙江大学硕士学位论文 Abstract
iii
Abstract
Android is the opensource mobile operation system which release by Google in
2007. In recent years, more and more people begin to use Android devices as
entertainment and working platform, because of the high speed development of
Android software and hardware. Meanwhile, with the development of modern drawing
software, the traditional drawing has lost its advantage, and made it possible copying
nature painting experience through digital method. But the Android platform didn't
have a lot of application which have good effect of paint. This paper mainly discuss
about Android painting software development, considering of the value and good
prospect for Android painting software.
In this paper, the main research work done in the following aspects:
1. Rewrite the MyPaint's brush engine in Java language and transplant it in
Android platform.We will use this engine in our painting software development.
2. Transplant the FFMPEG to Android platform succeed and using it for
recording user's painting process, at last it will generate video file which is MP4
format.
3. Analysis the principle and method of low level component development in
Android and discusses one of c/c + + development technology by using JNI method.
4. Of the painting software for Android development is realized.
Key Words:Android,MyPaint, FFMPEG, NDK, Painting Software
浙江大学硕士学位论文 图目录
IV
目录
摘要 ...............................................................................................................................i
Abstract.........................................................................................................................ii
目录 ............................................................................................................................III
图目录 .........................................................................................................................V
第 1 章 绪论 ................................................................................................................1
1.1 课题背景及意义 ..................................................................................................1
1.1.1 课题背景 .....................................................................................................1
1.1.2 课题意义 .....................................................................................................1
1.2 论文主要内容 ......................................................................................................2
1.3 本章小结 ..............................................................................................................2
第 2 章 Android 平台整体结构分析 ..........................................................................3
2.1 Android 系统架构.................................................................................................3
2.2 Android 应用组件.................................................................................................6
2.2.1 AndroidManifest.xml ...................................................................................6
2.2.2 Activity .........................................................................................................6
2.2.3 Service ........................................................................................................10
2.2.4 BroadcastReceiver......................................................................................10
2.3 本章小结 ............................................................................................................10
第 3 章 MyPaint 笔刷引擎原理简介........................................................................11
3.1 MyPaint 介绍 ......................................................................................................11
3.2 MyPaint 笔刷引擎主要结构体介绍 ..................................................................11
3.2.1 MyPaintFixedTiledSurface 结构介绍........................................................11
3.2.2 MyPaintBrush 结构介绍...........................................................................14
3.3 MyPaint 笔刷引擎工作原理 ..............................................................................16
3.3.1 MyPaint 的基本绘制单位——笔触 .........................................................16
3.3.2 笔刷引擎的工作流程 ...............................................................................19
3.4 本章小结 ............................................................................................................24
第 4 章 MyPaint 笔刷引擎的 Android 版本移植 ....................................................25
4.1 Android 版本改写原因.......................................................................................25
4.2 MyPaintFixedTiledSurface 的移植.....................................................................25
4.2.1 View 介绍...................................................................................................25
4.2.2 Surface 类的设计.......................................................................................26
4.2.3 MyPaintBrush 类的改写............................................................................29
4.2.4 实现结果分析对比 ...................................................................................32
4.3 本章小结 ............................................................................................................33
第 5 章 绘图软件应用界面开发设计与实现 ..........................................................34
浙江大学硕士学位论文 图目录
V
5.1 绘图软件的功能模块 ........................................................................................34
5.2 笔刷选择模块 ....................................................................................................34
5.3 颜色选取模块设计 ............................................................................................37
5.4 笔刷属性调节模块设计 ....................................................................................38
5.5 绘图 Activity 设计 .............................................................................................39
5.6 本章小结 ............................................................................................................40
第 6 章 Android 底层组件开发方法 ........................................................................41
6.1 JNI 机制 ..............................................................................................................41
6.1.1 JNI 简介 .....................................................................................................41
6.1.2 JNI 的使用 .................................................................................................42
6.2 Android NDK 简介 .............................................................................................42
6.3 Android 底层组件开发步骤...............................................................................43
6.4 本章小结 ............................................................................................................44
第 7 章 基于 FFMPEG 库的绘画过程录制实现.....................................................45
7.1 FFmpeg 简介.......................................................................................................45
7.2 绘图过程录制需求分析 ....................................................................................47
7.3 FFmpeg Android 平台移植 ................................................................................47
7.4 编写 FFmpeg 封装层 C 代码 ............................................................................51
7.4.1 FFmpeg 常用数据结构..............................................................................51
7.4.2 底层编码流程 ...........................................................................................51
7.5 编写 Android 应用层代码 ................................................................................60
7.6 完整录制绘画过程流程 ....................................................................................63
7.7 绘画过程录制功能效果分析 ............................................................................65
7.8 本章小结 ............................................................................................................66
第 8 章 结束语 ..........................................................................................................67
8.1 论文工作总结 ....................................................................................................67
8.2 问题与展望 ........................................................................................................67
参考文献 ....................................................................................................................69
剩余76页未读,继续阅读
资源评论
智慧安全方案
- 粉丝: 3642
- 资源: 59万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功