Docs.rs
pnm-0.1.0
pnm 0.1.0
Permalink
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
bend-n
Dependencies
atools ^0.1.1
normal
fimg ^0.4.41
normal
fimg ^0.4.41
dev
Versions
66.67%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
Rust
About docs.rs
Privacy policy
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
pnm
0.1.0
Module raw
Constants
Functions
In pnm::pgm
?
Module
pnm
::
pgm
::
raw
source
·
[
−
]
Expand description
Module for handling raw (binary)
PGM
(gray) images.
Constants
§
MAGIC
Functions
§
decode
Decode a raw binary
PGM
image into an
Image
<
Box
<
u8
>, 1>
decode_body_into
Decodes the body of this image, placing it in the
Uninit
image.
decode_wo_magic
Decode without magic.
encode
Encode an
Image
<
u8
, 1>
PBM
Raw (binary) Image.
encode_into
⚠
Encodes directly into a buffer. Returns number of bytes written. Buffer should have at least
size
bytes.
size
Inaccurate estimate. Will always be greater than the real number of bytes.