diff options
Diffstat (limited to 'native/src')
-rw-r--r-- | native/src/widget/image.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/native/src/widget/image.rs b/native/src/widget/image.rs index a1743744..fbe38bfc 100644 --- a/native/src/widget/image.rs +++ b/native/src/widget/image.rs @@ -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. /// |