Leanpub Header

Skip to main content

Material for LCUI 应用开发实战:图像查看器

The author is letting you choose the price you pay for this book!

Pick Your Price...
PDF
EPUB
WEB
122
Pages
8,766Words
About

About

About the Book

Share this book

Categories

Price

Pick Your Price...

Minimum price

$19.00

$29.00

You pay

$29.00

Author earns

$23.20
$

All prices are in US $. You can pay in US $ or in your local currency when you check out.

EU customers: prices exclude VAT, which is added during checkout.

...Or Buy With Credits!

Number of credits (Minimum 2)

2
The author will earn $24.00 from your purchase!
You can get credits monthly with a Reader Membership

Author

About the Author

Liu Chao

Web Frontend Developer, Author of the LCUI Open Source Project.

Contents

Table of Contents

介绍

  1. 实现的是什么程序?
  2. 你会学到什么?
  3. 适宜人群
  4. 前置知识

配置开发环境

  1. 系统要求
  2. 创建项目
  3. 构建项目
  4. 运行项目
  5. 打包和发布项目
  6. 配置编辑器
  7. 定制项目
  8. 小结
  9. Quiz 1

设计程序架构

  1. 功能需求分析
  2. 功能库
  3. 用户界面
  4. 小结

实现图像缩放控制器

  1. 数据结构
  2. 初始化
  3. 销毁
  4. 加载图像文件
  5. 计算自适应比例
  6. 设置缩放比例
  7. 设置可见区域位置
  8. 快捷缩放
  9. 状态检查
  10. 小结

实现图像文件收集器

  1. 通信机制
  2. 数据结构
  3. 初始化
  4. 销毁
  5. 事件通知
  6. 工作线程
  7. 加载文件
  8. 状态检测
  9. 文件切换
  10. 数据获取
  11. 小结
  12. Quiz 2

实现文件信息读取器

  1. 定义数据结构
  2. 初始化和销毁
  3. 加载信息
  4. 小结

实现主界面

  1. 拆分组件
  2. 设计布局
  3. 描述界面结构
  4. 添加样式
  5. 编译 TypeScript
  6. 显示界面
  7. 设置窗口标题
  8. 小结

构建图像查看界面

  1. 拆分组件
  2. 设计布局
  3. 选取图标
  4. 描述界面结构
  5. 显示界面
  6. 小结

显示图像

  1. 加载图像
  2. 集成控制器
  3. 更新窗口标题
  4. 处理工作目录和参数
  5. 小结

反馈加载状态

  1. 添加进度条
  2. 获取图像加载状态
  3. 显示错误信息
  4. 小结

添加图像缩放交互

  1. 快捷键
  2. 拖动图像
  3. 滚轮缩放
  4. 重置缩放
  5. 小结

添加图像切换交互

  1. 引入收集器
  2. 状态更新
  3. 响应切换按钮
  4. 响应按键
  5. 小结

添加工具栏交互

  1. 文件信息
  2. 缩放比例
  3. 缩放按钮
  4. 自适应按钮
  5. 全屏按钮
  6. 小结

添加滑块组件

  1. 创建组件
  2. 添加状态管理
  3. 添加数据绑定
  4. 实现拖拽滑动
  5. 小结

实现影片界面

  1. 创建组件
  2. 添加样式
  3. 定义数据结构
  4. 加载缩略图列表
  5. 选中缩略图
  6. 设置滚轮行为
  7. 添加切换按钮
  8. 小结

实现信息界面

  1. 创建组件
  2. 显示界面
  3. 获取文件信息
  4. 头部
  5. 名称
  6. 修改时间
  7. 大小信息
  8. 文件路径
  9. 小结

总结

  1. LCUI 的现状和未来
  2. 练习

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub