pub struct LaunchkeyBitmap(/* private fields */);
Expand description
Represents a 128x64 monochrome bitmap for Launchkey MK4 displays
Implementations§
Source§impl LaunchkeyBitmap
impl LaunchkeyBitmap
Sourcepub fn new(data: [u8; 1216]) -> Self
pub fn new(data: [u8; 1216]) -> Self
Creates a new bitmap from a 1216-byte array, where each byte encodes pixels in a specific format.
Sourcepub fn from_image(img: DynamicImage, threshold: u8) -> Self
pub fn from_image(img: DynamicImage, threshold: u8) -> Self
Converts a full image to a Launchkey-compatible 128x64 monochrome bitmap using a brightness threshold.
Trait Implementations§
Source§impl Clone for LaunchkeyBitmap
impl Clone for LaunchkeyBitmap
Source§fn clone(&self) -> LaunchkeyBitmap
fn clone(&self) -> LaunchkeyBitmap
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LaunchkeyBitmap
impl Debug for LaunchkeyBitmap
Source§impl From<LaunchkeyBitmap> for [u8; 1216]
impl From<LaunchkeyBitmap> for [u8; 1216]
Source§fn from(val: LaunchkeyBitmap) -> Self
fn from(val: LaunchkeyBitmap) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LaunchkeyBitmap
impl PartialEq for LaunchkeyBitmap
Source§impl TryFrom<&[u8]> for LaunchkeyBitmap
impl TryFrom<&[u8]> for LaunchkeyBitmap
impl Eq for LaunchkeyBitmap
impl StructuralPartialEq for LaunchkeyBitmap
Auto Trait Implementations§
impl Freeze for LaunchkeyBitmap
impl RefUnwindSafe for LaunchkeyBitmap
impl Send for LaunchkeyBitmap
impl Sync for LaunchkeyBitmap
impl Unpin for LaunchkeyBitmap
impl UnwindSafe for LaunchkeyBitmap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more