mirror of
https://github.com/typst/typst
synced 2025-08-12 06:07:54 +08:00
Improve image raw pixel data format documentation
This commit is contained in:
parent
b92bc9dd4b
commit
904ee72db6
@ -46,10 +46,11 @@ use crate::text::LocalName;
|
|||||||
/// ```
|
/// ```
|
||||||
#[elem(scope, Show, LocalName, Figurable)]
|
#[elem(scope, Show, LocalName, Figurable)]
|
||||||
pub struct ImageElem {
|
pub struct ImageElem {
|
||||||
/// A path to an image file or raw bytes making up an image in one of the
|
/// A [path]($syntax/#paths) to an image file or raw bytes making up an
|
||||||
/// supported [formats]($image.format).
|
/// image in one of the supported [formats]($image.format).
|
||||||
///
|
///
|
||||||
/// For more details about paths, see the [Paths section]($syntax/#paths).
|
/// Bytes can be used to specify raw pixel data in a row-major,
|
||||||
|
/// left-to-right, top-to-bottom format.
|
||||||
///
|
///
|
||||||
/// ```example
|
/// ```example
|
||||||
/// #let original = read("diagram.svg")
|
/// #let original = read("diagram.svg")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user