Crates.io | dxf2image |
lib.rs | dxf2image |
version | 0.1.1 |
source | src |
created_at | 2021-09-27 11:06:02.934233 |
updated_at | 2021-09-28 04:14:52.278347 |
description | dxf2image is a fast and efficient dxf to image converter! |
homepage | |
repository | https://github.com/k-fujino-kohei/dxf2image |
max_upload_size | |
id | 456946 |
size | 105,803 |
dxf2image is a fast and efficient dxf to image converter!
Put the following in your Cargo.toml
[dependencies]
dxf2image = "0.1"
If you want png, please add png
to the features
[dependencies]
dxf2image = { version = "0.1", features = ["png"] }
use dxf2image::{dxf2svg, dxf2png};
fn main() {
let dxf = "sample.dxf";
// Convert to svg
let svg = "sample.svg";
dxf2svg(dxf, svg).unwrap();
// Convert to png
let png = "sample.png";
dxf2png(dxf, png).unwrap();
}
For supported dxf, see dxf-rs.
Distributed under the Apache License. See LICENSE for more information.