android.graphics.Bitmap.getWidth C# (CSharp) Method

getWidth() public method

public getWidth ( ) : int
return int
        public int getWidth()
        {
            return global::MonoJavaBridge.JavaBridge.CallIntMethod(this, global::android.graphics.Bitmap.staticClass, "getWidth", "()I", ref global::android.graphics.Bitmap._m19);
        }

Usage Example

コード例 #1
0
ファイル: AlphaBitmap.cs プロジェクト: hakeemsm/XobotOS
		static void drawIntoBitmap (Bitmap bm)
		{
			float x = bm.getWidth ();
			float y = bm.getHeight ();
			Canvas c = new Canvas (bm);
			Paint p = new Paint ();
			p.setAntiAlias (true);

			p.setAlpha (0x80);
			c.drawCircle (x / 2, y / 2, x / 2, p);

			p.setAlpha (0x30);
			p.setXfermode (new PorterDuffXfermode (PorterDuff.Mode.SRC));
			p.setTextSize (60);
			p.setTextAlign (Paint.Align.CENTER);
			Paint.FontMetrics fm = p.getFontMetrics ();
			c.drawText ("Alpha", x / 2, (y - fm.ascent) / 2, p);
		}
All Usage Examples Of android.graphics.Bitmap::getWidth