ch1:android digital imaging:formats concepts and optimization

來源:互聯網
上載者:User

標籤:

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

ch1:android digital imaging:formats concepts and optimization

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.