ch1:android digital imaging:formats concepts and optimization

android digital image formats:lossless versus lossy

  1. GIF is not recommended in androd os , cause is lossless , it doesn‘t not away image data to achieve better compression results.
  2. JEPG is lossy digial image file format. it will thorws away image data in order ot achieve smaller file sizes .  and is unrecoverable after compression . so please make sure to save an orginal uncopressed image file
  3. the most recommended format is PNG , because it‘s lossless andd has both high image quality and reasonable level of compression efficiency .
  4. andoid also support webp image format.

the foundation of digital iamges:pixels and aspect ratio

  1. to found out the number of pixels and image , simplely multiply the width pixels by height pixels .
  2. aspec ratio will define how square or rectangular an image or display screen is.

The color of digital imagel: color theory and color depth

  1. Color values for iamge pixels are defined by the amount of there different colors : red , green ,and blue .
  2. the number of bits used to repersent coloer in a igital image is referred to as the color depth f that image.
  3. the lowest color depth exists in an 8-bit indexed color image , which has 256 clolr value . it used for GIF and PNG8 formats . the medium color depth image features a 16-bit color depth which contains 65536 colors . but it‘s not supported by android os . a high color depth iamge features a 24-bit color . include JPEG, PNG,TIFF and webP.
  4. using 24-bit color depth will give you the hightset quality level. Since it‘s lossless , it has the highest quality compression .

Representing colors in Androd:Hexadecimal Notation

  1. it‘s also important to note that in andoid .color is not only used in 2D digital iamgery . also called itmap imagery .
  2. #FFFFFF represents a color of whit . As each slot in this 24-bit hexadecimal representation represents on base 16 value . to get 256 for each RGB color will take 2 slots .
  3. it‘s important to note that there is also a 32-bits image color depth whose data  values are represented using an ARGB . whre the A stand for alpha . which is short for alpha channel . 
    the alpha stand for transparency 。

Image Compositing : Alpha channels and Blending Modes

  1. Blending modes are implemented in Android using the PorterDuff class.
  2. Some of Android’s PorterDuff blending modes include ADD, SCREEN, OVERLAY, DARKEN, XOR, LIGHTEN, and MULTIPLY.

Digital Image Masking: A Popular Use for Alpha Channels

  1. one of the primary applications for alpha channels is to mask out areas of an image for compositing .
  2. Masking is the process of cutting subject matter out of an image and placing it onto its own layer using an alpha channel.
  3. You can’t really do effective image compositing without doing masking first, so it’s an important area for graphics designers to master.
  4. masking can be done by using selection tools and sharpening and blur algorithms
时间: 2024-08-03 15:31:51

ch1:android digital imaging:formats concepts and optimization的相关文章

Digital Imaging Processing 数字图像处理

关于量化压缩与量化补偿 RGB Bayer Color分析 彩色CCD/CMOS的格式和计算机中的读取格式

《Pro Android Graphics》读书笔记之第二节

Android Digital Video: Formats, Concepts and Optimization Android Digital Video Formats: MPEG4 H.264 and WebM VP8 H.263 支持老显示器 MPEG4 SP   supported for commercial video(支持商业视频) 3GP Google在2.3.3中加入对WebM的支持 video Stream 4.0以后版本 recommend using MPEG-4 H

《Pro Android Graphics》读书笔记之第四节

Android Procedural Animation: : XML, Concepts and Optimization Procedural Animation Concepts: Tweens and Interpolators Interpolator:http://developer.android.com/reference/android/animation/TimeInterpolator.html Procedural Animation Data Values: Range

《Pro Android Graphics》读书笔记之第三节

Android Frame Animation: XML, Concepts and Optimization Frame Animation Concepts: Cels, Framerate, and Resolution 动画的发展 cel-base animation raster animation bitmap commonly called bitmap animation not currently support Animated GIF Optimizing Frame An

《Pro Android Graphics》读书笔记之第五节

Android DIP: Device-independent Pixel Graphics Design How Android Supports Device Displays: UI Design and UX Device Display Concepts: Size, Density, Orientation, DIP size Type small,normal,large,extra large,extra extra large screen density the number

android播放器:mediaplayer

近几天的主要问题在于播放器.原来采用的方案最终发现存在问题无法实施,只好临时替换.想起最开始就曾经想用的android提供的VideoView和MediaPlayer组件,开始替换,然后就是一堆问题.网上查到的大部分资料都没有解决问题,无意中搜到这篇文章,感觉还不错的问题总结,希望能帮我解决问题吧,也希望对正在学习的人能有所帮助. 主要内容来自于(原文网址):http://www.boyunjian.com/do/article/snapshot.do?uid=34531852526006352

Android.mk 文件语法指南

1 前言 本文档描述了c和c++编写的程序用Android NDK编译时,编译文件Android.mk的语法结构.为了便于理解下面的内容,假设你已经阅读了前面OVERVIEW部分,了解了它们的作用和用法. 2 概要 Android.mk是用来描述源文件是如何进行编译的.更具体的:-Android.mk实际上是一个轻量级的Makefile,它会被编译系统解析一次或多次.因此,你应该尽可能少的声明变量,同时不要假定在解析过程中没有定义任何东西.-Android.mk是用来允许你将源文件组织在一个'm

Unity3D Optimizing Graphics Performance for iOS

原地址:http://blog.sina.com.cn/s/blog_72b936d801013ptr.html icense Comparisons http://unity3d.com/unity/licenses#iphone Optimizing Graphics Performance http://unity3d.com/support/documentation/Manual/Optimizing Graphics Performance.html iOS A useful bac

斯坦福CS课程列表

http://exploredegrees.stanford.edu/coursedescriptions/cs/ CS 101. Introduction to Computing Principles. 3-5 Units. Introduces the essential ideas of computing: data representation, algorithms, programming "code", computer hardware, networking, s