简体   繁体   English

Rust图形库

[英]Rust Graphics Library

I want to make simple program that can accept jpg images and make optimal arrangement on a given format (A4, A3, A2 paper etc...) and output new image that contains optimally arranged images on an A4/A3/... format. 我想做一个简单的程序,可以接受jpg图像并以给定格式(A4,A3,A2纸张等)进行最佳排列,并输出包含A4 / A3 / ...格式中最佳排列图像的新图像。 。

I saw that there are some libraries but are more suited for game development. 我看到有一些库,但更适合游戏开发。 I just need something that can read data from jpeg (width, height, resolution, color profile etc...) and can perform some basic operations on image. 我只需要一些可以从jpeg读取数据(宽度,高度,分辨率,颜色配置文件等)并且可以对图像执行一些基本操作的东西。

The easiest way is to use https://github.com/PistonDevelopers/rust-image , which was released quite recently. 最简单的方法是使用https://github.com/PistonDevelopers/rust-image ,它是最近发布的。

The other way is to use https://github.com/crabtw/rust-bindgen to create bindings for your favourite C image manipulation library. 另一种方法是使用https://github.com/crabtw/rust-bindgen为您喜欢的C图像操作库创建绑定。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM