Is there any native functions in Linux that load and save images without using external libraries? [closed]

元气小坏坏 提交于 2019-12-12 03:49:20

问题


In Windows LoadImage API loads image to the memory.

FreeImage (http://freeimage.sourceforge.net) is a cross-platform library for loading and saving images, but I want to use functions like LoadImage in Windows, that do not depend to any external libraries like FreeImage.

Is there any native functions in Linux that load and save images without using external libraries?


回答1:


No, there isn't. Loading and saving images is really not the job of an Operating System kernel like Linux. A kernel manages memory, IO and CPU resources, and that's it. Everything else should be done by user-level code.




回答2:


Linux is a kernel, it's not even an operating system really. There are no libraries in there to help you with stuff like this.

Within Windows it's actually the same, except that Windows includes a load of libraries by default.

If you want something similar on Linux, you'll have to install some libraries too.



来源:https://stackoverflow.com/questions/15862362/is-there-any-native-functions-in-linux-that-load-and-save-images-without-using-e

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!