drawOval() public méthode

public drawOval ( android arg0, android arg1 ) : void
arg0 android
arg1 android
Résultat void
Exemple #1
0
		// create a bitmap with a circle, used for the "dst" image
		static Bitmap makeDst (int w, int h)
		{
			Bitmap bm = Bitmap.createBitmap (w, h, Bitmap.Config.ARGB_8888);
			Canvas c = new Canvas (bm);
			Paint p = new Paint (Paint.ANTI_ALIAS_FLAG);

			p.setColor (unchecked((int)0xFFFFCC44));
			c.drawOval (new RectF (0, 0, w * 3 / 4, h * 3 / 4), p);
			return bm;
		}
Exemple #2
0
		void drawSrcR (Canvas canvas, int index)
		{
			mPaint.setColor (sSrcData [index * 3 + 2]);
			canvas.drawOval (mSrcR, mPaint);
		}