mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-27 06:40:07 +00:00
Updated Using JPEG PNG OSS (markdown)
parent
01b3014a6d
commit
c05793a664
@ -29,3 +29,34 @@ HRESULT LoadFromJPEGFile(const wchar_t* szFile, TexMetadata* metadata, ScratchIm
|
||||
```
|
||||
HRESULT SaveToJPEGFile(const Image& image, const wchar_t* szFile);
|
||||
```
|
||||
|
||||
# libpng
|
||||
|
||||
The files `Auxiliary/DirectXTexPNG.h` and `DirectXTexPNG.cpp` implement the following wrapper functions for [libpng](https://github.com/glennrp/libpng).
|
||||
|
||||
## Using vcpkg
|
||||
|
||||
**UNDER DEVELOPMENT**
|
||||
|
||||
## License
|
||||
|
||||
The **libpng** library is licensed under a custom license known as the *PNG Reference Library License*.
|
||||
|
||||
## Functions
|
||||
|
||||
```
|
||||
HRESULT GetMetadataFromPNGFile(const wchar_t* szFile, TexMetadata& metadata);
|
||||
```
|
||||
|
||||
```
|
||||
HRESULT LoadFromPNGFile(const wchar_t* szFile, TexMetadata* metadata, ScratchImage& image);
|
||||
```
|
||||
|
||||
```
|
||||
HRESULT SaveToPNGFile(const Image& image, const wchar_t* szFile);
|
||||
```
|
||||
|
||||
# Credit
|
||||
|
||||
Thanks to Park DongHa for their contribution of these functions to the library.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user