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).
-
ClassDescriptionAngularGradient generates gradient colors linearly interpolated in the angular direction of a circle, also known as sweep gradient, conic gradient.Builder pattern of
AngularGradient
.Describes a 2D raster image (pixel map), with its pixels in native memory.Describes the number of channels and bytes per pixel in memory.List of supported formats a bitmap can be saved as (encoding or compressing).CreatesBitmaps
from encoded data.Collects the options for the decoder and additional outputs from the decoder.Blends are operators that take in two colors (source, destination) and return a new color.A color filter that can be used to tint the source pixels using a single color and a specificBlendMode
.A Canvas provides an interface for drawing 2D geometries, images, and how the drawing is clipped and transformed.Supported primitive topologies, corresponding to OpenGL and Vulkan defined values.ColorFilters are optional objects in the drawing pipeline.Deprecated.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.Deprecated.Base class for shaders that generate multiple gradient colors.Hue interpolation method.Interpolation color space.Image
describes a two-dimensional array of pixels to sample from.Shader used to draw an image as a texture.TheFilterMode
specifies the sampling method on transformed texture images.TheMipmapMode
specifies the interpolation method for MIP image levels when down-sampling texture images.Deprecated.LinearGradient generates gradient colors linearly interpolated between two points.Builder pattern ofLinearGradient
.Keep API consistent.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
controls options applied when drawing.TheAlign
specifies the treatment where the stroke is placed in relation to the object edge, this only applies to closed contours.TheCap
specifies the treatment for the beginning and ending of stroked lines and paths.TheJoin
specifies the treatment where lines and curve segments join on a stroked path.SetStyle
to fill, stroke, or both fill and stroke geometry.ThePath
object contains mutable path elements.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.Represents a point holding two integer values.Represents a point holding two float values.RadialGradient generates gradient colors linearly interpolated in the radial direction of a circle.Builder pattern ofRadialGradient
.Represents a rectangle.Represents a rectangle holding four float coordinates.Data structure that holds the properties for a RenderNode.Shaders specify the source color(s) for what is being drawn.Tile modes, also known as address modes and wrap modes.