android Programming Glossary: paint.setshader
create circular image view in android [duplicate] http://stackoverflow.com/questions/16208365/create-circular-image-view-in-android TileMode.CLAMP TileMode.CLAMP Paint paint new Paint paint.setShader shader Canvas c new Canvas circleBitmap c.drawCircle bitmap.getWidth..
Fill color on bitmap in android http://stackoverflow.com/questions/20697189/fill-color-on-bitmap-in-android Bitmap.Config.ARGB_8888 Canvas canvas new Canvas bmResult paint.setShader new LinearGradient widthToFill 75 widthToFill 75 0xFF97ca3e.. 75 widthToFill 75 0xFF97ca3e 0xFF284060 TileMode.MIRROR paint.setShader new LinearGradient widthToFill 75 widthToFill 75 0xFF97ca3e..
Gradients and shadows on buttons http://stackoverflow.com/questions/4891711/gradients-and-shadows-on-buttons Canvas canvas new Canvas bmResult Paint paint new Paint paint.setShader new LinearGradient 0 0 0 bmResult.getHeight 2 0xFF284560 0xFF284060.. 0xFF284060 TileMode.MIRROR canvas.drawPaint paint paint.setShader new LinearGradient 0 0 0 bmResult.getHeight 2 0x55FFFFFF 0x22FFFFFF..
How to set bitmap in circular imageview? http://stackoverflow.com/questions/5882180/how-to-set-bitmap-in-circular-imageview bitmap TileMode.CLAMP TileMode.CLAMP Paint paint new Paint paint.setShader shader Canvas c new Canvas circleBitmap c.drawCircle bitmap.getWidth..
Gradient appears banded in a SurfaceView, but looks very smooth in a normal View http://stackoverflow.com/questions/7774867/gradient-appears-banded-in-a-surfaceview-but-looks-very-smooth-in-a-normal-view new int 0xff150d2f 0xff432b96 null Shader.TileMode.CLAMP paint.setShader shader canvas.drawRect 0 0 getWidth getHeight paint Here is..
Android - How to draw an arc based gradient http://stackoverflow.com/questions/9037108/android-how-to-draw-an-arc-based-gradient Paint.Cap.FILL paint.setStyle Paint.Style.FILL paint.setShader shader canvas.drawArc rectF startAngle sweepAngle true paint..
Carousel library for android http://stackoverflow.com/questions/9838518/carousel-library-for-android reflectionGap 0x70ffffff 0x00ffffff TileMode.CLAMP paint.setShader shader paint.setXfermode new PorterDuffXfermode Mode.DST_IN..
create circular image view in android [duplicate] http://stackoverflow.com/questions/16208365/create-circular-image-view-in-android BitmapShader shader new BitmapShader bitmap TileMode.CLAMP TileMode.CLAMP Paint paint new Paint paint.setShader shader Canvas c new Canvas circleBitmap c.drawCircle bitmap.getWidth 2 bitmap.getHeight 2 bitmap.getWidth 2 paint imageView.setImageBitmap..
Fill color on bitmap in android http://stackoverflow.com/questions/20697189/fill-color-on-bitmap-in-android and canvas Bitmap bmResult Bitmap.createBitmap barWidth 75 Bitmap.Config.ARGB_8888 Canvas canvas new Canvas bmResult paint.setShader new LinearGradient widthToFill 75 widthToFill 75 0xFF97ca3e 0xFF284060 TileMode.MIRROR paint.setShader new LinearGradient.. bmResult paint.setShader new LinearGradient widthToFill 75 widthToFill 75 0xFF97ca3e 0xFF284060 TileMode.MIRROR paint.setShader new LinearGradient widthToFill 75 widthToFill 75 0xFF97ca3e 0xFF284060 TileMode.CLAMP paint.setARGB 188 164 120 130 canvas.drawRect..
Gradients and shadows on buttons http://stackoverflow.com/questions/4891711/gradients-and-shadows-on-buttons buttonWidth buttonHeight Bitmap.Config.ARGB_8888 Canvas canvas new Canvas bmResult Paint paint new Paint paint.setShader new LinearGradient 0 0 0 bmResult.getHeight 2 0xFF284560 0xFF284060 TileMode.MIRROR canvas.drawPaint paint paint.setShader.. new LinearGradient 0 0 0 bmResult.getHeight 2 0xFF284560 0xFF284060 TileMode.MIRROR canvas.drawPaint paint paint.setShader new LinearGradient 0 0 0 bmResult.getHeight 2 0x55FFFFFF 0x22FFFFFF TileMode.CLAMP paint.setMaskFilter new BlurMaskFilter..
How to set bitmap in circular imageview? http://stackoverflow.com/questions/5882180/how-to-set-bitmap-in-circular-imageview BitmapShader shader new BitmapShader bitmap TileMode.CLAMP TileMode.CLAMP Paint paint new Paint paint.setShader shader Canvas c new Canvas circleBitmap c.drawCircle bitmap.getWidth 2 bitmap.getHeight 2 bitmap.getWidth 2 paint myImageView.setImageBitmap..
Gradient appears banded in a SurfaceView, but looks very smooth in a normal View http://stackoverflow.com/questions/7774867/gradient-appears-banded-in-a-surfaceview-but-looks-very-smooth-in-a-normal-view false Shader shader new LinearGradient 0 0 0 200 new int 0xff150d2f 0xff432b96 null Shader.TileMode.CLAMP paint.setShader shader canvas.drawRect 0 0 getWidth getHeight paint Here is the screenshot showing the SurfaceView above and the normal..
Android - How to draw an arc based gradient http://stackoverflow.com/questions/9037108/android-how-to-draw-an-arc-based-gradient Paint paint new Paint paint.setStrokeWidth 1 paint.setStrokeCap Paint.Cap.FILL paint.setStyle Paint.Style.FILL paint.setShader shader canvas.drawArc rectF startAngle sweepAngle true paint But the result is the entire arc is painted with the same color...
Carousel library for android http://stackoverflow.com/questions/9838518/carousel-library-for-android LinearGradient 0 sepia.getHeight 0 bitmapWithReflection.getHeight reflectionGap 0x70ffffff 0x00ffffff TileMode.CLAMP paint.setShader shader paint.setXfermode new PorterDuffXfermode Mode.DST_IN canvas.drawRect 0 height width bitmapWithReflection.getHeight..
|