Skip to content

Commit

Permalink
ARGB/ABGR pixels are 4 bytes each, not 2
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin authored and kornelski committed Feb 20, 2023
1 parent 9d4870b commit f9d4501
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/convert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ as_pixels_impl!{GRB, 3}
as_pixels_impl!{Gray, 1}
as_pixels_impl!{GrayAlpha, 2}
#[cfg(feature = "argb")]
as_pixels_impl!{ARGB, 2}
as_pixels_impl!{ARGB, 4}
#[cfg(feature = "argb")]
as_pixels_impl!{ABGR, 2}
as_pixels_impl!{ABGR, 4}

/// Cast a slice of component values (bytes) as a slice of RGB/RGBA pixels
///
Expand Down

0 comments on commit f9d4501

Please sign in to comment.