[][src]Struct stego::LSBStego

pub struct LSBStego { /* fields omitted */ }

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

impl Send for LSBStego

impl Sync for LSBStego

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.