[−][src]Struct stego::LSBStego
Methods
impl LSBStego
[src]
pub fn new(im: DynamicImage) -> Self
[src]
Create a new LSBStego instance by taking in a DynamicImage
pub fn from_rgba(im: RgbaImage) -> Self
[src]
Create a new LSBStego instance by taking in a DynamicImage
pub fn get_mask_one(&self) -> usize
[src]
Returns the mask value of the current maskONE index
pub fn get_mask_zero(&self) -> usize
[src]
Returns the mask value of the current maskZERO index
pub fn put_binary_value(&mut self, bits: String)
[src]
Put a string of binary_values into self.image
pub fn next_slot(&mut self)
[src]
move to the next slot where information can me mutated
pub fn encode_text(&mut self, txt: String) -> RgbaImage
[src]
Encodes a text message into an image
pub fn decode_text(&mut self) -> String
[src]
Decodes a hidden message from an image
pub fn encode_image(&mut self, im: DynamicImage) -> RgbaImage
[src]
Encodes an image into another image
pub fn decode_image(&mut self) -> RgbaImage
[src]
Decodes a hidden image from another image
pub fn encode_binary(&mut self, data: Vec<u8>) -> RgbaImage
[src]
Encodes a binary file into the image
pub fn decode_binary(&mut self) -> Vec<u8>
[src]
Encodes a binary file into the image
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value
as a parameter of self
.