mirror of
https://github.com/G2-Games/lbee-utils.git
synced 2025-04-19 07:12:55 -05:00
Removed improperly uploaded images
This commit is contained in:
parent
b55ac7abe0
commit
8c4745e7c8
6 changed files with 15 additions and 2 deletions
BIN
src/782.cz0
BIN
src/782.cz0
Binary file not shown.
BIN
src/782s.cz0
BIN
src/782s.cz0
Binary file not shown.
BIN
src/ex_pt.cz0
BIN
src/ex_pt.cz0
Binary file not shown.
17
src/main.rs
17
src/main.rs
|
@ -5,7 +5,7 @@ use sdl2::rect::Point;
|
|||
use sdl2::event::Event;
|
||||
use sdl2::keyboard::Keycode;
|
||||
|
||||
use image::{RgbaImage, ImageFormat};
|
||||
use image::{RgbaImage, ImageFormat, open};
|
||||
|
||||
use std::io;
|
||||
use std::fs;
|
||||
|
@ -86,13 +86,26 @@ fn decode_cz(mut input:Vec<u8>) -> Image {
|
|||
return final_image;
|
||||
}
|
||||
|
||||
/*
|
||||
fn encode_cz() -> Image {
|
||||
let on_top = open("path/to/some.png").unwrap().into_rgb8();
|
||||
|
||||
// Construct the image struct
|
||||
let final_image = Image {
|
||||
header,
|
||||
bitmap: input,
|
||||
};
|
||||
|
||||
return Image;
|
||||
}*/
|
||||
|
||||
fn main() -> io::Result<()> {
|
||||
let sdl_context = sdl2::init().unwrap();
|
||||
let video_subsystem = sdl_context.video().unwrap();
|
||||
|
||||
// Read all bytes of the CZ image to an array
|
||||
println!("Reading image...");
|
||||
let image_raw = fs::read("numbers.cz0")?;
|
||||
let image_raw = fs::read("782s.cz0")?;
|
||||
|
||||
let image = decode_cz(image_raw);
|
||||
|
||||
|
|
BIN
src/numbers.cz0
BIN
src/numbers.cz0
Binary file not shown.
BIN
src/tmp.png
BIN
src/tmp.png
Binary file not shown.
Before Width: | Height: | Size: 7.1 KiB |
Loading…
Reference in a new issue