IT. Expert System.

Android Reference

PictureDrawable


android.graphics.drawable

Class PictureDrawable



  • public class PictureDrawable
    extends Drawable
    Drawable subclass that wraps a Picture, allowing the picture to be used whereever a Drawable is supported.
    • Constructor Detail

      • PictureDrawable

        public PictureDrawable(Picture picture)
        Construct a new drawable referencing the specified picture. The picture may be null.
        Parameters:
        picture - The picture to associate with the drawable. May be null.
    • Method Detail

      • getPicture

        public Picture getPicture()
        Return the picture associated with the drawable. May be null.
        Returns:
        the picture associated with the drawable, or null.
      • setPicture

        public void setPicture(Picture picture)
        Associate a picture with this drawable. The picture may be null.
        Parameters:
        picture - The picture to associate with the drawable. May be null.
      • draw

        public void draw(Canvas canvas)
        Description copied from class: Drawable
        Draw in its bounds (set via setBounds) respecting optional effects such as alpha (set via setAlpha) and color filter (set via setColorFilter).
        Specified by:
        draw in class Drawable
        Parameters:
        canvas - The canvas to draw into
      • getIntrinsicWidth

        public int getIntrinsicWidth()
        Description copied from class: Drawable
        Return the intrinsic width of the underlying drawable object. Returns -1 if it has no intrinsic width, such as with a solid color.
        Overrides:
        getIntrinsicWidth in class Drawable
      • getIntrinsicHeight

        public int getIntrinsicHeight()
        Description copied from class: Drawable
        Return the intrinsic height of the underlying drawable object. Returns -1 if it has no intrinsic height, such as with a solid color.
        Overrides:
        getIntrinsicHeight in class Drawable
      • setFilterBitmap

        public void setFilterBitmap(boolean filter)
        Description copied from class: Drawable
        Set to true to have the drawable filter its bitmap when scaled or rotated (for drawables that use bitmaps). If the drawable does not use bitmaps, this call is ignored. This can improve the look when scaled or rotated, but also slows down the drawing.
        Overrides:
        setFilterBitmap in class Drawable
      • setDither

        public void setDither(boolean dither)
        Description copied from class: Drawable
        Set to true to have the drawable dither its colors when drawn to a device with fewer than 8-bits per color component. This can improve the look on those devices, but can also slow down the drawing a little.
        Overrides:
        setDither in class Drawable
      • setColorFilter

        public void setColorFilter(ColorFilter colorFilter)
        Description copied from class: Drawable
        Specify an optional colorFilter for the drawable. Pass null to remove any filters.
        Specified by:
        setColorFilter in class Drawable
      • setAlpha

        public void setAlpha(int alpha)
        Description copied from class: Drawable
        Specify an alpha value for the drawable. 0 means fully transparent, and 255 means fully opaque.
        Specified by:
        setAlpha in class Drawable


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 655 / 158857718. Delta: 0.03735 с