Properties of the Android canvas paint, and drawing graphics

Source: Internet
Author: User

draws an inner tangent arc of a specified rectanglevoid Android.graphics.Canvas.drawArc (RECTF Oval, Rectangular
float startangle, starting anglefloat sweepAngle, end angleBoolean usecenter, whether closed
paint paint) Brush
        // defines the inscribed circle        of a RECTF rectangle RECTF RECTF =  new RECTF (50,50,180,180);         true , mpaint);         // defines the inscribed circle of the RECTF rectangle, Boolean usercenter, whether        RECTF RECTF1 =  new RECTF (200,200,300,300);         false, mpaint);

Note Mpaint.setstyle (Paint.Style.STROKE);

Paint brushes have two kinds of style:fill, STROKE

Fill: Fills, such as rectangles, with color fills in the middle

STROKE: The contour is just the outline of the drawing.

Properties of the Android canvas paint, and drawing graphics

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.