diff options
author | Xavier Ducrohet <xav@android.com> | 2010-12-21 01:33:04 -0800 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2010-12-21 10:43:18 -0800 |
commit | 63fd87113cea6abec97a6cd966e090e9b590fc3b (patch) | |
tree | 1cbdd623cdac465fc3a648b4afc93b4212a213f7 /tools/layoutlib/bridge/src/android/graphics/PixelXorXfermode_Delegate.java | |
parent | d348b6eaa98e23cb38d90906df109aaa2d20ea7f (diff) | |
download | frameworks_base-63fd87113cea6abec97a6cd966e090e9b590fc3b.zip frameworks_base-63fd87113cea6abec97a6cd966e090e9b590fc3b.tar.gz frameworks_base-63fd87113cea6abec97a6cd966e090e9b590fc3b.tar.bz2 |
LayoutLib: Misc rendering fixes.
- always set up the stroke. Paint may not have the proper
style when drawing lines. stroke should still be setup.
- Fixed vertical linear gradient. Old code generated
a gradient ratio of NaN
- Fixed alpha rendering when using shaders. In that
case the alpha channel from the paint color should be
used in conjunction with the shader.
- Fixed miter limit. Java expects the value to be multiplied
by the stroke width
- Fixed support for drawing ALPHA_8 bitmaps. Java2D doesn't
have bitmaps with only alpha channels, so we keep using
ARGB bitmaps but when drawing them into a bitmap we erase
the color information.
Change-Id: I4f04341fc843e3f7dadd1fdbf709b11a4f1e24b9
Diffstat (limited to 'tools/layoutlib/bridge/src/android/graphics/PixelXorXfermode_Delegate.java')
-rw-r--r-- | tools/layoutlib/bridge/src/android/graphics/PixelXorXfermode_Delegate.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/layoutlib/bridge/src/android/graphics/PixelXorXfermode_Delegate.java b/tools/layoutlib/bridge/src/android/graphics/PixelXorXfermode_Delegate.java index e8f29ad..516a2b9 100644 --- a/tools/layoutlib/bridge/src/android/graphics/PixelXorXfermode_Delegate.java +++ b/tools/layoutlib/bridge/src/android/graphics/PixelXorXfermode_Delegate.java @@ -42,7 +42,7 @@ public class PixelXorXfermode_Delegate extends Xfermode_Delegate { // ---- Public Helper methods ---- @Override - public Composite getComposite() { + public Composite getComposite(int alpha) { // FIXME return null; } |