Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 image problems #752

Open
jiabotao opened this issue Aug 24, 2024 · 0 comments
Open

2 image problems #752

jiabotao opened this issue Aug 24, 2024 · 0 comments

Comments

@jiabotao
Copy link

jiabotao commented Aug 24, 2024

1: when i want resolve images in run ,the 'pic.image' is empty
RunChild::Drawing(draw_box) => {
let drawing_data = draw_box.data.unwrap();
match drawing_data {
DrawingData::Pic(pic) => {
println!("fount image");
let pic_image = pic.image;
println!("image data size:{}", pic_image.len())
}
DrawingData::TextBox(_) => {}
}
}
2: in impl Pic {},I suggest give a function to reset image:Vec[u8],and hold on other properties mayby like:
pub fn reset_image(mut self, image:Vec[u8]) -> Pic {
self.image = image;
self
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant