# Package icyllis.modernui.graphics

package icyllis.modernui.graphics
The graphics package defines application-level interfaces that are independent of the underlying 3D API. These are only driven by the GPU (hardware).

- Related Packages
  Package
  Description
  icyllis.modernui
  icyllis.modernui.graphics.drawable
  icyllis.modernui.graphics.text
- Class
  Description
  AngularGradient
  AngularGradient generates gradient colors linearly interpolated in the angular direction of a circle, also known as sweep gradient, conic gradient.
  AngularGradient.Builder
  Builder pattern of `AngularGradient`.
  Bitmap
  Describes a 2D raster image (pixel map), with its pixels in native memory.
  Bitmap.Format
  Describes a layout of pixel data in CPU memory.
  Bitmap.SaveFormat
  List of supported formats a bitmap can be saved as (encoding or compressing).
  BitmapFactory
  Creates `Bitmaps` from encoded data.
  BitmapFactory.Options
  Collects the options for the decoder and additional outputs from the decoder.
  BlendMode
  Blends are operators that take in two colors (source, destination) and return a new color.
  BlendModeColorFilter
  A color filter that can be used to tint the source pixels using a single color and a specific `BlendMode`.
  Canvas
  A Canvas provides an interface for drawing 2D geometries, images, and how the drawing is clipped and transformed.
  Canvas.VertexMode
  Supported primitive topologies, corresponding to OpenGL and Vulkan defined values.
  Color
  ColorFilter
  ColorFilters are optional objects in the drawing pipeline.
  CustomDrawable
  Deprecated.
  CustomDrawable.DrawHandler
  The engine backend is deferred so the handler will be given access to the 3D API at the correct point in the drawing stream as the engine backend flushes.
  GLSurface
  Deprecated.
  GradientShader
  Base class for shaders that generate multiple gradient colors.
  GradientShader.Builder
  GradientShader.HueInterpolationMethod
  Hue interpolation method.
  GradientShader.InterpolationColorSpace
  Interpolation color space.
  Image
  `Image` describes a two-dimensional array of pixels to sample from.
  ImageShader
  Shader used to draw an image as a texture.
  ImageShader.FilterMode
  The `FilterMode` specifies the sampling method on transformed texture images.
  ImageShader.MipmapMode
  The `MipmapMode` specifies the interpolation method for MIP image levels when down-sampling texture images.
  ImageStore
  Deprecated.
  LinearGradient
  LinearGradient generates gradient colors linearly interpolated between two points.
  LinearGradient.Builder
  Builder pattern of `LinearGradient`.
  MathUtil
  Keep API consistent.
  Matrix
  This class represents a 3x3 matrix and a 2D transformation, its components correspond to x, y, and w of a 4x4 matrix, where z is discarded.
  Paint
  `Paint` controls options applied when drawing.
  Paint.Align
  The `Align` specifies the treatment where the stroke is placed in relation to the object edge, this only applies to closed contours.
  Paint.Cap
  The `Cap` specifies the treatment for the beginning and ending of stroked lines and paths.
  Paint.Join
  The `Join` specifies the treatment where lines and curve segments join on a stroked path.
  Paint.Style
  Set `Style` to fill, stroke, or both fill and stroke geometry.
  Paint.TextStyle
  Path
  The `Path` object contains mutable path elements.
  PathMeasure
  `PathMeasure` provides measurements on segments of path contours (lines, quadratic curves, cubic curves), such as determining the length of the path, and/or finding the position and tangent along it.
  Point
  Represents a point holding two integer values.
  PointF
  Represents a point holding two float values.
  RadialGradient
  RadialGradient generates gradient colors linearly interpolated in the radial direction of a circle.
  RadialGradient.Builder
  Builder pattern of `RadialGradient`.
  Rect
  Represents a rectangle.
  RectF
  Represents a rectangle holding four float coordinates.
  RenderNode
  RenderProperties
  Data structure that holds the properties for a RenderNode.
  SceneRenderer
  Shader
  Shaders specify the source color(s) for what is being drawn.
  Shader.TileMode
  Tile modes, also known as address modes and wrap modes.