This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android.Content; | |
namespace Droid | |
{ | |
public static class DpiToPixelConverter | |
{ | |
public static int Convert(int dpi) | |
{ | |
float scale = Application.Context.Resources.DisplayMetrics.Density; | |
return (int)(dpi * scale + 0.5f); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android.App; | |
using Android.Support.V8.Renderscript; | |
namespace Droid | |
{ | |
public static class BitmapUtil | |
{ | |
public static Bitmap Blur(Bitmap originalBitmap) | |
{ | |
// Create the Renderscript instance that will do the work. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android.Content; | |
using Android.Widget; | |
using Android.Util; | |
using Android.Graphics; | |
namespace Droid | |
{ | |
public class RotatedTextView : TextView | |
{ | |
public RotatedTextView(Context ctx, IAttributeSet attr) |
NewerOlder