<itemvalue="Raw RGBA format. Unencoded bytes, in RGBA row-primary form with premultiplied alpha, 8 bits per channel."/>
<itemvalue="Opaque handle to raw decoded image data (pixels). To obtain an [Image] object, use the [ImageDescriptor] API. To draw an [Image], use one of the methods on the [Canvas] class, such as [Canvas.drawImage]."/>
<itemvalue="Convert an array of pixel values into an [Image] object. The `pixels` parameter is the pixel data. They are packed in bytes in the order described by `format`, then grouped in rows, from left to right, then top to bottom. The `rowBytes` parameter is the number of bytes consumed by each row of pixels in the data buffer. If unspecified, it defaults to `width` multiplied by the number of bytes per pixel in the provided `format`."/>
<itemvalue="Creates an image from a list of bytes. This function attempts to interpret the given bytes an image. If successful, the returned [Future] resolves to the decoded image. Otherwise, the [Future] resolves to null. If the image is animated, this returns the first frame. Consider [instantiateImageCodec] if support for animated images is necessary. This function differs from [ui.decodeImageFromList] in that it defers to [PaintingBinding.instantiateImageCodecWithSize], and therefore can be mocked in tests."/>
<itemvalue="specular"/>
<itemvalue="specular"/>
<itemvalue="diffuse"/>
<itemvalue="diffuse"/>
<itemvalue="ambient"/>
<itemvalue="ambient"/>
@ -58,15 +62,11 @@
<itemvalue="texture coordinates"/>
<itemvalue="texture coordinates"/>
<itemvalue="A set of vertex data used by [Canvas.drawVertices]. Vertex data consists of a series of points in the canvas coordinate space. Based on the [VertexMode], these points are interpreted either as independent triangles ([VertexMode.triangles]), as a sliding window of points forming a chain of triangles each sharing one side with the next ([VertexMode.triangleStrip]), or as a fan of triangles with a single shared point ([VertexMode.triangleFan]). Each point can be associated with a color. Each triangle is painted as a gradient that blends between the three colors at the three points of that triangle. If no colors are specified, transparent black is assumed for all the points. These colors are then blended with the [Paint] specified in the call to [Canvas.drawVertices]. This paint is either a solid color ([Paint.color]), or a bitmap, specified using a shader ([Paint.shader]), typically either a gradient ([Gradient]) or image ([ImageFilter]). The bitmap uses the same coordinate space as the canvas (in the case of an [ImageFilter], this is notably different than the coordinate space of the source image; the source image is tiled according to the filter's configuration, and the image that is sampled when painting the triangles is the infinite one after all the repeating is applied.) Each point in the [Vertices] is associated with a specific point on this image. Each triangle is painted by sampling points from this image by interpolating between the three points of the image corresponding to the three points of the triangle. The [Vertices.new] constructor configures all this using lists of [Offset] and [Color] objects. The [Vertices.raw] constructor instead uses [Float32List], [Int32List], and [Uint16List] objects, which more closely corresponds to the data format used internally and therefore reduces some of the conversion overhead. The raw constructor is useful if the data is coming from another source (e.g. a file) and can therefore be parsed directly into the underlying representation."/>
<itemvalue="A set of vertex data used by [Canvas.drawVertices]. Vertex data consists of a series of points in the canvas coordinate space. Based on the [VertexMode], these points are interpreted either as independent triangles ([VertexMode.triangles]), as a sliding window of points forming a chain of triangles each sharing one side with the next ([VertexMode.triangleStrip]), or as a fan of triangles with a single shared point ([VertexMode.triangleFan]). Each point can be associated with a color. Each triangle is painted as a gradient that blends between the three colors at the three points of that triangle. If no colors are specified, transparent black is assumed for all the points. These colors are then blended with the [Paint] specified in the call to [Canvas.drawVertices]. This paint is either a solid color ([Paint.color]), or a bitmap, specified using a shader ([Paint.shader]), typically either a gradient ([Gradient]) or image ([ImageFilter]). The bitmap uses the same coordinate space as the canvas (in the case of an [ImageFilter], this is notably different than the coordinate space of the source image; the source image is tiled according to the filter's configuration, and the image that is sampled when painting the triangles is the infinite one after all the repeating is applied.) Each point in the [Vertices] is associated with a specific point on this image. Each triangle is painted by sampling points from this image by interpolating between the three points of the image corresponding to the three points of the triangle. The [Vertices.new] constructor configures all this using lists of [Offset] and [Color] objects. The [Vertices.raw] constructor instead uses [Float32List], [Int32List], and [Uint16List] objects, which more closely corresponds to the data format used internally and therefore reduces some of the conversion overhead. The raw constructor is useful if the data is coming from another source (e.g. a file) and can therefore be parsed directly into the underlying representation."/>
<itemvalue="Draws a set of [Vertices] onto the canvas as one or more triangles. The [Paint.color] property specifies the default color to use for the triangles. The [Paint.shader] property, if set, overrides the color entirely, replacing it with the colors from the specified [ImageShader], [Gradient], or other shader. The `blendMode` parameter is used to control how the colors in the `vertices` are combined with the colors in the `paint`. If there are no colors specified in `vertices` then the `blendMode` has no effect. If there are colors in the `vertices`, then the color taken from the [Paint.shader] or [Paint.color] in the `paint` is blended with the colors specified in the `vertices` using the `blendMode` parameter. For the purposes of this blending, the colors from the `paint` parameter are considered the source, and the colors from the `vertices` are considered the destination. [BlendMode.dst] ignores the `paint` and uses only the colors of the `vertices`; [BlendMode.src] ignores the colors of the `vertices` and uses only the colors in the `paint`. All parameters must not be null. See also: [Vertices.new], which creates a set of vertices to draw on the canvas. [Vertices.raw], which creates the vertices using typed data lists rather than unencoded lists. [paint], Image shaders can be used to draw images on a triangular mesh."/>
<itemvalue="Draws a set of [Vertices] onto the canvas as one or more triangles. The [Paint.color] property specifies the default color to use for the triangles. The [Paint.shader] property, if set, overrides the color entirely, replacing it with the colors from the specified [ImageShader], [Gradient], or other shader. The `blendMode` parameter is used to control how the colors in the `vertices` are combined with the colors in the `paint`. If there are no colors specified in `vertices` then the `blendMode` has no effect. If there are colors in the `vertices`, then the color taken from the [Paint.shader] or [Paint.color] in the `paint` is blended with the colors specified in the `vertices` using the `blendMode` parameter. For the purposes of this blending, the colors from the `paint` parameter are considered the source, and the colors from the `vertices` are considered the destination. [BlendMode.dst] ignores the `paint` and uses only the colors of the `vertices`; [BlendMode.src] ignores the colors of the `vertices` and uses only the colors in the `paint`. All parameters must not be null. See also: [Vertices.new], which creates a set of vertices to draw on the canvas. [Vertices.raw], which creates the vertices using typed data lists rather than unencoded lists. [paint], Image shaders can be used to draw images on a triangular mesh."/>