Note BGRA requirement in Handle::from_pixels docs

This commit is contained in:
Soham Chowdhury 2020-03-01 06:44:06 +05:30
parent 1841015428
commit eb7e3250d3

View File

@ -125,7 +125,9 @@ impl Handle {
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.
///