android.graphics包簡介

來源:互聯網
上載者:User

標籤:android   blog   http   使用   os   re   

Tip

android.graphics 包

Abstract

android.graphics 包android提供的2D開發包,它提供了一些初級圖形工具,諸如畫布、顏色過濾器、畫 筆等

Usage
  1. surfaceview結合graphics包可以建立自訂控制項
MyTick

繪圖時可以想想自己在一個繪圖軟體中繪畫,在一塊畫布(canvas)上,使用自己調好的筆(Paint)畫線(Path)畫形狀(drawRect drawOval),插入想要的圖片(drawBitmap),插入想要的特定格式的文字(Typeface drawText)設定顏色透明度,渲染等等。

Reference

繪製幾何圖形——使用android.graphics類

a?n?d?r?o?i?d?.?g?r?a?p?h?i?c?s?包

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.