android.graphics

Interfaces

OnHeaderDecodedListener

Interface for changing the default settings of a decode.

OnPartialImageListener

Interface for inspecting a DecodeException and potentially preventing it from being thrown.

PostProcessor

Helper interface for adding custom processing to an image.

OnFrameAvailableListener

Callback interface for being notified that a new stream frame is available.

Classes

Bitmap

BitmapFactory

Creates Bitmap objects from various sources, including files, streams, and byte-arrays.

BitmapRegionDecoder

BitmapRegionDecoder can be used to decode a rectangle region from an image.

BitmapShader

Shader used to draw a bitmap as a texture.

BlendModeColorFilter

A color filter that can be used to tint the source pixels using a single color and a specific BlendMode.

BlurMaskFilter

This takes a mask, and blurs its edge by the specified radius.

Camera

A camera instance can be used to compute 3D transformations and generate a matrix that can be applied, for instance, on a Canvas.

Canvas

The Canvas class holds the "draw" calls.

Color

The Color class provides methods for creating, converting and manipulating colors.

ColorFilter

A color filter can be used with a Paint to modify the color of each pixel drawn with that paint.

ColorMatrix

4x5 matrix for transforming the color and alpha components of a Bitmap.

ColorMatrixColorFilter

A color filter that transforms colors through a 4x5 color matrix.

ColorSpace

A ColorSpace is used to identify a specific organization of colors.

ComposePathEffect

ComposeShader

A subclass of shader that returns the composition of two other shaders, combined by an android.graphics.Xfermode subclass.

CornerPathEffect

DashPathEffect

DiscretePathEffect

DrawFilter

A DrawFilter subclass can be installed in a Canvas.

EmbossMaskFilter

Gainmap

Gainmap represents a mechanism for augmenting an SDR image to produce an HDR one with variable display adjustment capability.

HardwareBufferRenderer

Creates an instance of a hardware-accelerated renderer.

HardwareRenderer

Creates an instance of a hardware-accelerated renderer.

ImageDecoder

A class for converting encoded images (like PNG, JPEG, WEBP, GIF, or HEIF) into Drawable or Bitmap objects.

ImageFormat

Insets

An Insets instance holds four integer offsets which describe changes to the four edges of a Rectangle.

Interpolator

LightingColorFilter

A color filter that can be used to simulate simple lighting effects.

LinearGradient

MaskFilter

MaskFilter is the base class for object that perform transformations on an alpha-channel mask before drawing it.

Matrix

The Matrix class holds a 3x3 matrix for transforming coordinates.

Mesh

Class representing a mesh object.

MeshSpecification

Class responsible for holding specifications for Mesh creations.

Movie

NinePatch

The NinePatch class permits drawing a bitmap in nine or more sections.

Outline

Defines a simple shape, used for bounding graphical regions.

Paint

The Paint class holds the style and color information about how to draw geometries, text and bitmaps.

PaintFlagsDrawFilter

ParcelableColorSpace

A Parcelable wrapper for a ColorSpace.

Path

The Path class encapsulates compound (multiple contour) geometric paths consisting of straight line segments, quadratic curves, and cubic curves.

PathDashPathEffect

PathEffect

PathEffect is the base class for objects in the Paint that affect the geometry of a drawing primitive before it is transformed by the canvas' matrix and drawn.

PathIterator

PathIterator can be used to query a given Path object, to discover its operations and point values.

PathMeasure

Picture

A Picture records drawing calls (via the canvas returned by beginRecording) and can then play them back into Canvas (via Picture#draw(Canvas) or Canvas#drawPicture(Picture)).

PixelFormat

Point

Point holds two integer coordinates

PointF

PointF holds two float coordinates

PorterDuff

This class contains the list of alpha compositing and blending modes that can be passed to PorterDuffXfermode, a specialized implementation of Paint's transfer mode.

PorterDuffColorFilter

A color filter that can be used to tint the source pixels using a single color and a specific Porter-Duff composite mode.

PorterDuffXfermode

Specialized implementation of Paint's transfer mode.

RadialGradient

RecordingCanvas

A Canvas implementation that records view system drawing operations for deferred rendering.

Rect

Rect holds four integer coordinates for a rectangle.

RectF

RectF holds four float coordinates for a rectangle.

Region

RegionIterator

RenderEffect

Intermediate rendering step used to render drawing commands with a corresponding visual effect.

RenderNode

RenderNode is used to build hardware accelerated rendering hierarchies.

RuntimeShader

A RuntimeShader calculates a per-pixel color based on the output of a user defined Android Graphics Shading Language (AGSL) function.

Shader

Shader is the base class for objects that return horizontal spans of colors during drawing.

SumPathEffect

SurfaceTexture

Captures frames from an image stream as an OpenGL ES texture.

SweepGradient

Typeface

The Typeface class specifies the typeface and intrinsic style of a font.

Xfermode

Xfermode is the base class for objects that are called to implement custom "transfer-modes" in the drawing pipeline.

YuvImage

YuvImage contains YUV data and provides a method that compresses a region of the YUV data to a Jpeg.

Enums

BlendMode