Android Guides | Samples

Android.Graphics Namespace


Provides low level graphics tools such as canvases, color filters, points, and rectangles that let you handle drawing to the screen directly.


AvoidXfermodeAvoidXfermode xfermode will draw the src everywhere except on top of the opColor or, depending on the Mode, draw only on top of the opColor.
Bitmap [Android Documentation]
Bitmap+CompressFormatSpecifies the known formats a bitmap can be compressed into
Bitmap+ConfigPossible bitmap configurations.
BitmapFactoryCreates Bitmap objects from various sources, including files, streams, and byte-arrays.
BitmapRegionDecoderBitmapRegionDecoder can be used to decode a rectangle region from an image.
BitmapShaderShader used to draw a bitmap as a texture.
BlurMaskFilterThis takes a mask, and blurs its edge by the specified radius.
CameraA camera instance can be used to compute 3D transformations and generate a matrix that can be applied, for instance, on a Canvas.
CanvasThe Canvas class holds the "draw" calls.
ColorFilterA color filter can be used with a Paint to modify the color of each pixel drawn with that paint.
ColorMatrix4x5 matrix for transforming the color and alpha components of a Bitmap.
ColorMatrixColorFilterA color filter that transforms colors through a 4x5 color matrix.
ComposePathEffect [Android Documentation]
ComposeShaderA subclass of shader that returns the composition of two other shaders, combined by an Xfermode subclass.
CornerPathEffect [Android Documentation]
DashPathEffect [Android Documentation]
DiscretePathEffect [Android Documentation]
DrawFilterA DrawFilter subclass can be installed in a Canvas.
EmbossMaskFilter [Android Documentation]
FormatEnumerates values returned by several types and taken as a parameter of several types.
ImageFormat [Android Documentation]
ImageFormatTypeEnumerates values returned by several types and taken as a parameter of the ImageFormat.GetBitsPerPixel, Android.Graphics.YuvImage..ctor, and ImageReader.NewInstance members.
Interpolator [Android Documentation]
LayerRasterizer [Android Documentation]
LightingColorFilterA color filter that can be used to simulate simple lighting effects.
LinearGradient [Android Documentation]
MaskFilterMaskFilter is the base class for object that perform transformations on an alpha-channel mask before drawing it.
MatrixThe Matrix class holds a 3x3 matrix for transforming coordinates.
Matrix+ScaleToFitControlls how the src rect should align into the dst rect for setRectToRect().
MatrixFlagsEnumerates values returned by the MatrixFlags.Position, and MatrixFlags.Tangent members and taken as a parameter of the PathMeasure.GetMatrix member.
Movie [Android Documentation]
NinePatchThe NinePatch class permits drawing a bitmap in nine or more sections.
OutlineDefines a simple shape, used for bounding graphical regions.
PaintThe Paint class holds the style and color information about how to draw geometries, text and bitmaps.
Paint+AlignAlign specifies how drawText aligns its text relative to the [x,y] coordinates.
Paint+CapThe Cap specifies the treatment for the beginning and ending of stroked lines and paths.
Paint+FontMetricsClass that describes the various metrics for a font at a given text size.
Paint+FontMetricsIntConvenience method for callers that want to have FontMetrics values as integers.
Paint+JoinThe Join specifies the treatment where lines and curve segments join on a stroked path.
Paint+StyleThe Style specifies if the primitive being drawn is filled, stroked, or both (in the same color).
PaintFlagsEnumerates values returned by several types and taken as a parameter of several types.
PaintFlagsDrawFilter [Android Documentation]
PaintHintingEnumerates values returned by several types.
PathThe Path class encapsulates compound (multiple contour) geometric paths consisting of straight line segments, quadratic curves, and cubic curves.
Path+DirectionSpecifies how closed shapes (e.g. rects, ovals) are oriented when they are added to a path.
Path+FillTypeEnum for the ways a path may be filled
PathDashPathEffect [Android Documentation]
PathEffectPathEffect 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.
PathMeasure [Android Documentation]
PictureA 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 [Android Documentation]
PixelXorXfermodePixelXorXfermode implements a simple pixel xor (op ^ src ^ dst).
PointPoint holds two integer coordinates
PointFPointF holds two float coordinates
PorterDuff [Android Documentation]
PorterDuffColorFilterA color filter that can be used to tint the source pixels using a single color and a specific PorterDuff.
PorterDuffXfermode [Android Documentation]
RadialGradient [Android Documentation]
Rasterizer [Android Documentation]
RectRect holds four integer coordinates for a rectangle.
RectFRectF holds four float coordinates for a rectangle.
Region [Android Documentation]
RegionIterator [Android Documentation]
SaveFlagsEnumerates values returned by several methods of SaveFlags and taken as a parameter of several methods of Canvas.
ShaderShader is the based class for objects that return horizontal spans of colors during drawing.
SumPathEffect [Android Documentation]
SurfaceTextureCaptures frames from an image stream as an OpenGL ES texture.
SurfaceTexture+FrameAvailableEventArgsProvides data for the SurfaceTexture.FrameAvailable event.
SurfaceTexture+IOnFrameAvailableListenerCallback interface for being notified that a new stream frame is available.
SurfaceTexture+OutOfResourcesExceptionException thrown when a surface couldn't be created or resized
SweepGradient [Android Documentation]
TypefaceThe Typeface class specifies the typeface and intrinsic style of a font.
TypefaceStyleEnumerates values returned by several types and taken as a parameter of several types.
XfermodeXfermode is the base class for objects that are called to implement custom "transfer-modes" in the drawing pipeline.
YuvImageYuvImage contains YUV data and provides a method that compresses a region of the YUV data to a Jpeg.