Is there any c function that allows me to convert a raw image to a PNG file? Preferably, for this I do not need to drag a large library.
Thanks.
I don’t believe that. Libpng , on the other hand, is not a huge library.
Have you tried the libpng library?
http://www.libpng.org/pub/png/libpng.html
, " ", LodePNG . http://members.gamedev.net/lode/projects/LodePNG/ , , png
See the related question: Convert a bitmap in PNG to memory in C ++ (win32)
The short answer is that GDI + can convert a bitmap to PNG (with some limitations), so if you're on Windows, this is an option that is even more minimal than libPNG.
Source: https://habr.com/ru/post/1706248/More articles:when you can use a structure, not a class - c #Listing flags in .NET. - enumsJava library with support for subgraph isomorphism problem? - javaOverride OnPaint - c #CSS - rounded selection, checkbox and radio button - cssWhat should I know when streaming processing in ASP.NET? - asp.netIs there a way to hide annotations in Netbeans or Eclipse? - javaWhy is JavaScript always broken into separate