1 Star 0 Fork 0

tici / lpng

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
+----------------------------------------------------------+
|                                                          |
|        Ultra-light PNG loader library for Windows        |
|                                                          |
|                  http://swapped.cc/lpng                  |
|                                                          |
+----------------------------------------------------------+


  lpng implements loading of truecolor PNG images (with or 
  without an alpha channel) into 32-bit (RGB+A) Windows 
  bitmaps that can be used with AlphaBlend function.

  The .exe of a sample application is only 16KB in size,
  with 3KB taken by the actual PNG stored as resources.

+----------------------------------------------------------+

  License

  The PNG loading code (lpng.c) is written by me, Alex 
  Pankratov, and it is distributed under BSD license. The 
  deflate decoder (puff.c) is written by Mark Adler and 
  distributed under zlib license.

+----------------------------------------------------------+

  The API consists of just one function:

    HBITMAP LoadPng(const wchar_t * resName,
                    const wchar_t * resType,
                    HMODULE         resInst,
                    BOOL   premultiplyAlpha);

  It can be used to load a PNG from a disk file or from 
  a resource. Sample application demonstrating the use of 
  the API can be found in ./sample directory. The project 
  file is for Visual Studio 2005.

  The "premultiply" parameter controls whether the pixels'
  RGB values are 'pre-multiplied' at respective alpha value 
  if the alpha channel is present. This is a pre-processing
  step requied by the AlphaBlend function, so the parameter
  needs to be TRUE if the bitmap is going to be painted on
  a target DC using this function. Otherwise, e.g. if the
  bitmap is going to be used for an ImageList, it needs to
  be FALSE.

+----------------------------------------------------------+

空文件

简介

Ultra-light PNG loader library for Windows 展开 收起
C
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C
1
https://gitee.com/caiwangyue/lpng.git
git@gitee.com:caiwangyue/lpng.git
caiwangyue
lpng
lpng
master

搜索帮助