Note BGRA requirement in Handle::from_pixels docs
This commit is contained in:
parent
1841015428
commit
eb7e3250d3
@ -125,7 +125,9 @@ impl Handle {
|
|||||||
Self::from_data(Data::Path(path.into()))
|
Self::from_data(Data::Path(path.into()))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates an image [`Handle`] containing the image pixels directly.
|
/// Creates an image [`Handle`] containing the image pixels directly. This
|
||||||
|
/// function expects the input data to be provided as a `Vec<u8>` of BGRA
|
||||||
|
/// pixels.
|
||||||
///
|
///
|
||||||
/// This is useful if you have already decoded your image.
|
/// This is useful if you have already decoded your image.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user