mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2025-09-24 23:41:30 +02:00
implement invert instruction
This commit is contained in:
parent
2b3c74053e
commit
e7863402f3
4 changed files with 50 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
pub mod Read {
|
||||
pub mod read {
|
||||
use image::{io::Reader as ImageReader, DynamicImage};
|
||||
use rpl::instructions::read::{Read, SourceType};
|
||||
|
||||
|
@ -12,7 +12,7 @@ pub mod Read {
|
|||
}
|
||||
}
|
||||
|
||||
pub mod Write {
|
||||
pub mod write {
|
||||
use image::{io::Reader as ImageReader, DynamicImage, ImageFormat};
|
||||
use rpl::instructions::write::{TargetFormat, TargetType, Write};
|
||||
|
||||
|
@ -28,3 +28,14 @@ pub mod Write {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
pub mod filters {
|
||||
pub mod invert {
|
||||
use image::DynamicImage;
|
||||
|
||||
pub fn invert(mut input_data: DynamicImage) -> DynamicImage {
|
||||
input_data.invert();
|
||||
input_data
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue