Code examples for PictureDrawable

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
71:	return new PictureDrawable(picture); 
Full Snippet Info
6
CodeRank
56:	pd = new PictureDrawable(this.drawSpot()); 
-
68:	pd.setBounds(-(int) Math.ceil(pd.getIntrinsicWidth() / 2), 
69:	-(int) Math.ceil(pd.getIntrinsicHeight() / 2), 
70:	(int) Math.ceil(pd.getIntrinsicWidth() / 2), 
71:	(int) Math.ceil(pd.getIntrinsicHeight() / 2)); 
72:	super.setMarker(pd); 
Full Snippet Info
6
CodeRank
27:	PictureDrawable pd = new PictureDrawable(picture); 
28:	Bitmap bitmap = Bitmap.createBitmap(pd.getIntrinsicWidth(),pd.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); 
-
30:	canvas.drawPicture(pd.getPicture()); 
Full Snippet Info
6
CodeRank
60:	PictureDrawable drawable = new PictureDrawable(svg.getPicture()); 
61:	drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); 
62:	drawable.draw(canvas); 
Full Snippet Info
5
CodeRank
69:	drawable = new PictureDrawable(picture); 
Full Snippet Info
5
CodeRank
62:	mDrawable = new PictureDrawable(mPicture); 
Full Snippet Info
5
CodeRank
62:	mDrawable = new PictureDrawable(mPicture); 
Full Snippet Info
5
CodeRank
72:	return new PictureDrawable(picture); 
Full Snippet Info
4
CodeRank
297:	mCanvas.drawPicture(p.getPicture()); 
Full Snippet Info
5
CodeRank
71:	return new PictureDrawable(picture); 
Full Snippet Info
4
CodeRank
71:	return new PictureDrawable(picture); 
Full Snippet Info
4
CodeRank
74:	return new PictureDrawable(picture); 
Full Snippet Info
4
CodeRank
82:	return new PictureDrawable(picture); 
Full Snippet Info
4
CodeRank
54:	return new PictureDrawable(picture); 
Full Snippet Info
4
CodeRank
62:	c.setBounds(left, top, right, bottom); 
Full Snippet Info
4
CodeRank
71:	int svgWidth = pictureDrawable.getPicture().getWidth(); 
72:	int svgHeight = pictureDrawable.getPicture().getHeight(); 
-
103:	canvas.drawPicture(pictureDrawable.getPicture(), svgRect); 
Full Snippet Info
4
CodeRank