Skip to content

TechPriest/hdrldr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HdrLdr

Load Radiance HDR (.hdr, .pic) images. Slightly rustified version of C++ code by Igor Kravtchenko. If you need more image formats besides HDR, take a look at Image2 crate.

Example

Add hdrldr to your dependencies of your Cargo.toml:

[dependencies]
hdrldr = "0.1"

And then, in your rust file:

fn main() {
    // ...
    let f = File::open("foo.hdr").expect("Failed to open specified file");
    let image = hdrldr::load(f).expect("Failed to load image data");
    // Use your image data
    // ...
}

For more complete example, see Simple HDR Viewer application

About

Radiance HDR loader in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages