https://github.com/bash/ico-builder
A crate for creating multi-size ICO files from separate images
https://github.com/bash/ico-builder
ico rust windows
Last synced: 7 months ago
JSON representation
A crate for creating multi-size ICO files from separate images
- Host: GitHub
- URL: https://github.com/bash/ico-builder
- Owner: bash
- License: apache-2.0
- Created: 2023-03-04T20:00:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-30T13:40:38.000Z (almost 2 years ago)
- Last Synced: 2024-12-15T00:10:32.440Z (over 1 year ago)
- Topics: ico, rust, windows
- Language: Rust
- Homepage:
- Size: 63.5 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license-apache.txt
Awesome Lists containing this project
README
# ICO Builder
A crate for creating multi-size ICO files from separate images.
The images are automatically resized to the specified sizes.
## Usage
This example creates an ICO with the [bare minimum] icon sizes: 16x16, 24x24, 32x32, 48x48, 256x256.
For each size, the closest source file is chosen and resized as needed.
```rust,no_run
use ico_builder::IcoBuilder;
IcoBuilder::default()
.add_source_file("app-icon-32x32.png")
.add_source_file("app-icon-256x256.png")
.build_file("app-icon.ico");
```
[bare minimum]: https://learn.microsoft.com/en-us/windows/apps/design/style/iconography/app-icon-construction#icon-scaling
## [Docs](https://docs.rs/ico-builder)
## License
Licensed under either of
* Apache License, Version 2.0
([license-apache.txt](license-apache.txt) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license
([license-mit.txt](license-mit.txt) or http://opensource.org/licenses/MIT)
at your option.
## Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.