Best code examples for Android Picture class (android.graphics.Picture)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android Picture class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android Picture examples from Open Source projects
This code example shows how to use the following methods: draw, getHeight, getWidth
194:	Bitmap b = Bitmap.createBitmap( picture.getWidth(), picture.getHeight(), Bitmap.Config.ARGB_8888); 
-
196:	picture.draw(c); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
44:	Picture picture = new Picture(); 
-
46:	Canvas recordingCanvas = picture.beginRecording(bitmap.getWidth(), bitmap.getHeight()); 
-
48:	picture.endRecording(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getHeight, getWidth
141:	state = Bitmap.createBitmap(p.getWidth(), p.getHeight(), Bitmap.Config.ARGB_8888); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
121:	super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); 
122:	mPicture.endRecording(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: beginRecording, draw, endRecording, getHeight, getWidth
42:	Picture mCompassRose = new Picture(); 
43:	final Canvas canvas = mCompassRose.beginRecording(picBorderWidthAndHeight, picBorderWidthAndHeight); 
-
66:	mCompassRose.endRecording(); 
-
74:	Bitmap bm = Bitmap.createBitmap(mCompassRose.getWidth(), mCompassRose.getHeight(), Bitmap.Config.ARGB_8888); 
-
76:	mCompassRose.draw(c); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: beginRecording, draw, endRecording, getHeight, getWidth
57:	Picture mCompassRose = new Picture(); 
58:	final Canvas canvas = mCompassRose.beginRecording(picBorderWidthAndHeight, picBorderWidthAndHeight); 
-
81:	mCompassRose.endRecording(); 
-
110:	Bitmap bm = Bitmap.createBitmap(mCompassRose.getWidth(), mCompassRose.getHeight(), Bitmap.Config.ARGB_8888); 
-
112:	mCompassRose.draw(c); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
102:	Picture newPicture = new Picture(); 
-
108:	canvas=newPicture.beginRecording(width, height); 
-
112:	newPicture.endRecording(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getHeight, getWidth
141:	state = Bitmap.createBitmap(p.getWidth(), p.getHeight(), Bitmap.Config.ARGB_8888); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: beginRecording, draw, endRecording, getHeight, getWidth
110:	public void onSubBackground(Canvas canvas) { 
-
112:	Log.d(TAG, String.format(" width = %s  // height = %s", getWidth(), getHeight())); 
-
157:	Picture mCompassRose = new Picture(); 
158:	final Canvas canvas = mCompassRose.beginRecording(picBorderWidthAndHeight, picBorderWidthAndHeight); 
-
199:	mCompassRose.endRecording(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: draw, getHeight, getWidth
86:	final float scaleX = (float)this.mWidth / this.mPicture.getWidth(); 
87:	final float scaleY = (float)this.mHeight / this.mPicture.getHeight(); 
-
90:	picture.draw(canvas); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: draw, getHeight, getWidth
86:	final float scaleX = (float)this.mWidth / this.mPicture.getWidth(); 
87:	final float scaleY = (float)this.mHeight / this.mPicture.getHeight(); 
-
90:	picture.draw(canvas); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: draw, getWidth
104:	float scale = mImageWidth / (float) picture.getWidth(); 
-
107:	picture.draw(canvas); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
306:	final Canvas canvas = scaleBarPicture.beginRecording((int) xdpi, (int) ydpi); 
-
357:	scaleBarPicture.endRecording(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
39:	Picture p = new Picture(); 
40:	Canvas canvas = p.beginRecording(mWidth, mHeight); 
-
44:	p.endRecording(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getHeight, getWidth
73:	float sourceW = picture.getWidth(); 
74:	float sourceH = picture.getHeight(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: draw, getHeight, getWidth
93:	int w = pic.getWidth(); 
94:	int h = pic.getHeight(); 
-
100:	pic.draw(canvas); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
122:	super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); 
123:	mPicture.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: drawPicture, getHeight, getWidth
110:	int pictureWidth = picture.getWidth(); 
111:	int pictureHeight = picture.getHeight(); 
-
127:	new Canvas(bitmap).drawPicture(picture, drawRect); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: draw, getHeight, getWidth
78:	Bitmap bm = Bitmap.createBitmap(pic.getWidth(), pic.getHeight(), Bitmap.Config.ARGB_8888); 
-
80:	pic.draw(c); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: draw, getHeight, getWidth
104:	int picWidth = picture.getWidth(); 
105:	int picHeight = picture.getHeight(); 
-
129:	picture.draw(canvas); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
17:	private Picture canvasPic = new Picture(); 
-
21:	Canvas ctx = canvasPic.beginRecording(640, 480); 
-
43:	canvasPic.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getHeight, getWidth
38:	this(pPicture, pTextureX, pTextureY, pPicture.getWidth(), pPicture.getHeight()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: draw, getHeight, getWidth
141:	int width = picture.getWidth(); 
142:	int height = picture.getHeight(); 
-
154:	picture.draw(canvas); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getHeight, getWidth
38:	this(pPicture, pTextureX, pTextureY, pPicture.getWidth(), pPicture.getHeight()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
106:	super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); 
107:	mPicture.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
76:	Picture pic = new Picture(); 
-
136:	canvas = pic.beginRecording(width, height); 
-
141:	canvas = pic.beginRecording(height, width); 
-
146:	canvas = pic.beginRecording(width, height); 
-
152:	pic.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
89:	final Picture picture = new Picture(); 
90:	final SVGHandler svgHandler = new SVGHandler(picture, pSVGColorMapper); 
-
93:	final SVG svg = new SVG(picture, svgHandler.getBounds(), svgHandler.getComputedBounds()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
106:	super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); 
107:	mPicture.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: draw, getHeight, getWidth
163:	int width = picture.getWidth(); 
164:	int height = picture.getHeight(); 
-
176:	picture.draw(canvas); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
106:	super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); 
107:	mPicture.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
121:	super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); 
122:	mPicture.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
121:	super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); 
122:	mPicture.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
122:	super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); 
123:	mPicture.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
122:	super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); 
123:	mPicture.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
122:	super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); 
123:	mPicture.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
123:	super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); 
124:	mPicture.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: draw, getHeight, getWidth
194:	Bitmap b = Bitmap.createBitmap( picture.getWidth(), picture.getHeight(), Bitmap.Config.ARGB_8888); 
-
196:	picture.draw(c); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
184:	final Canvas canvas = scaleBarPicture.beginRecording((int) xdpi, 
-
233:	scaleBarPicture.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
105:	super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); 
106:	mPicture.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: beginRecording, endRecording
105:	super.dispatchDraw(mPicture.beginRecording(getWidth(), getHeight())); 
106:	mPicture.endRecording(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getHeight, getWidth
37:	this(pPicture, pTextureX, pTextureY, pPicture.getWidth(), pPicture.getHeight()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getHeight, getWidth
45:	protected final Picture mCompassRose = new Picture(); 
-
91:	mCompassRoseCenterX = mCompassRose.getWidth() / 2 - 0.5f; 
92:	mCompassRoseCenterY = mCompassRose.getHeight() / 2 - 0.5f; 
Full Snippet Info
5
CodeRank
Related Android Picture Questions & Answers:
See Code Examples for Android Picture Methods: