android.graphics.drawable
Class PictureDrawable
java.lang.Object
android.graphics.drawable.Drawable
android.graphics.drawable.PictureDrawable
public class PictureDrawable
- extends Drawable
Methods inherited from class android.graphics.drawable.Drawable |
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXmlInner, getBounds, getCallback, getChangingConfigurations, getConstantState, getCurrent, getLevel, getMinimumHeight, getMinimumWidth, getPadding, getState, getTransparentRegion, inflate, invalidateSelf, isStateful, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setLevel, setState, setVisible, unscheduleSelf |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PictureDrawable
public PictureDrawable(Picture picture)
getPicture
public Picture getPicture()
setPicture
public void setPicture(Picture picture)
draw
public void draw(Canvas canvas)
- Specified by:
draw
in class Drawable
getIntrinsicWidth
public int getIntrinsicWidth()
- Overrides:
getIntrinsicWidth
in class Drawable
getIntrinsicHeight
public int getIntrinsicHeight()
- Overrides:
getIntrinsicHeight
in class Drawable
getOpacity
public int getOpacity()
- Specified by:
getOpacity
in class Drawable
setFilterBitmap
public void setFilterBitmap(boolean filter)
- Overrides:
setFilterBitmap
in class Drawable
setDither
public void setDither(boolean dither)
- Overrides:
setDither
in class Drawable
setColorFilter
public void setColorFilter(ColorFilter colorFilter)
- Specified by:
setColorFilter
in class Drawable
setAlpha
public void setAlpha(int alpha)
- Specified by:
setAlpha
in class Drawable
Copyright © 2008-2012. All Rights Reserved.