#define STBI_NO_STDIO
#define STBI_NO_WRITE
#define STBI_NO_HDR
/* stbi-1.33 - public domain JPEG/PNG reader - http://nothings.org/stb_image.c
when you control the images you're loading
no warranty implied; use at your own risk
QUICK NOTES:
Primarily of interest to game developers and other people who can
avoid problematic images and only need the trivial interface
JPEG baseline (no JPEG progressive)
PNG 8-bit only
TGA (not sure what subset, if a subset)
BMP non-1bpp, non-RLE
PSD (composited view only, no extra channels)
GIF (*comp always reports as 4-channel)
HDR (radiance rgbE format)
PIC (Softimage PIC)
- decode from memory or through FILE (define STBI_NO_STDIO to remove code)
- decode from arbitrary I/O callbacks
- overridable dequantizing-IDCT, YCbCr-to-RGB conversion (define STBI_SIMD)
Latest revisions:
1.33 (2011-07-14) minor fixes suggested by Dave Moore
1.32 (2011-07-13) info support for all filetypes (SpartanJ)
1.31 (2011-06-19) a few more leak fixes, bug in PNG handling (SpartanJ)
1.30 (2011-06-11) added ability to load files via io callbacks (Ben Wenger)
1.29 (2010-08-16) various warning fixes from Aurelien Pocheville
1.28 (2010-08-01) fix bug in GIF palette transparency (SpartanJ)
1.27 (2010-08-01) cast-to-uint8 to fix warnings (Laurent Gomila)
allow trailing 0s at end of image data (Laurent Gomila)
1.26 (2010-07-24) fix bug in file buffering for PNG reported by SpartanJ
See end of file for full revision history.
TODO:
stbi_info support for BMP,PSD,HDR,PIC
============================ Contributors =========================
Image formats Optimizations & bugfixes
Sean Barrett (jpeg, png, bmp) Fabian "ryg" Giesen
Nicolas Schulz (hdr, psd)
Jonathan Dummer (tga) Bug fixes & warning fixes
Jean-Marc Lienher (gif) Marc LeBlanc
Tom Seddon (pic) Christpher Lloyd
Thatcher Ulrich (psd) Dave Moore
Won Chun
the Horde3D community
Extensions, features Janez Zemva
Jetro Lauha (stbi_info) Jonathan Blow
James "moose2000" Brown (iPhone PNG) Laurent Gomila
Ben "Disch" Wenger (io callbacks) Aruelien Pocheville
Martin "SpartanJ" Golini Ryamond Barbiero
David Woo
If your name should be here but isn't, let Sean know.
*/
#ifndef STBI_INCLUDE_STB_IMAGE_H
#define STBI_INCLUDE_STB_IMAGE_H
// To get a header file for this, either cut and paste the header,
// or create stb_image.h, #define STBI_HEADER_FILE_ONLY, and
// then include stb_image.c from it.
//// begin header file ////////////////////////////////////////////////////
//
// Limitations:
// - no jpeg progressive support
// - non-HDR formats support 8-bit samples only (jpeg, png)
// - no delayed line count (jpeg) -- IJG doesn't support either
// - no 1-bit BMP
// - GIF always returns *comp=4
//
// Basic usage (see HDR discussion below):
// int x,y,n;
// unsigned char *data = stbi_load(filename, &x, &y, &n, 0);
// // ... process data if not NULL ...
// // ... x = width, y = height, n = # 8-bit components per pixel ...
// // ... replace '0' with '1'..'4' to force that many components per pixel
// // ... but 'n' will always be the number that it would have been if you said 0
// stbi_image_free(data)
//
// Standard parameters:
// int *x -- outputs image width in pixels
// int *y -- outputs image height in pixels
// int *comp -- outputs # of image components in image file
// int req_comp -- if non-zero, # of image components requested in result
//
// The return value from an image loader is an 'unsigned char *' which points
// to the pixel data. The pixel data consists of *y scanlines of *x pixels,
// with each pixel consisting of N interleaved 8-bit components; the first
// pixel pointed to is top-left-most in the image. There is no padding between
// image scanlines or between pixels, regardless of format. The number of
// components N is 'req_comp' if req_comp is non-zero, or *comp otherwise.
// If req_comp is non-zero, *comp has the number of components that _would_
// have been output otherwise. E.g. if you set req_comp to 4, you will always
// get RGBA output, but you can check *comp to easily see if it's opaque.
//
// An output image with N components has the following components interleaved
// in this order in each pixel:
//
// N=#comp components
// 1 grey
// 2 grey, alpha
// 3 red, green, blue
// 4 red, green, blue, alpha
//
// If image loading fails for any reason, the return value will be NULL,
// and *x, *y, *comp will be unchanged. The function stbi_failure_reason()
// can be queried for an extremely brief, end-user unfriendly explanation
// of why the load failed. Define STBI_NO_FAILURE_STRINGS to avoid
// compiling these strings at all, and STBI_FAILURE_USERMSG to get slightly
// more user-friendly ones.
//
// Paletted PNG, BMP, GIF, and PIC images are automatically depalettized.
//
// ===========================================================================
//
// iPhone PNG support:
//
// By default we convert iphone-formatted PNGs back to RGB; nominally they
// would silently load as BGR, except the existing code should have just
// failed on such iPhone PNGs. But you can disable this conversion by
// by calling stbi_convert_iphone_png_to_rgb(0), in which case
// you will always just get the native iphone "format" through.
//
// Call stbi_set_unpremultiply_on_load(1) as well to force a divide per
// pixel to remove any premultiplied alpha *only* if the image file explicitly
// says there's premultiplied data (currently only happens in iPhone images,
// and only if iPhone convert-to-rgb processing is on).
//
// ===========================================================================
//
// HDR image support (disable by defining STBI_NO_HDR)
//
// stb_image now supports loading HDR images in general, and currently
// the Radiance .HDR file format, although the support is provided
// generically. You can still load any file through the existing interface;
// if you attempt to load an HDR file, it will be automatically remapped to
// LDR, assuming gamma 2.2 and an arbitrary scale factor defaulting to 1;
// both of these constants can be reconfigured through this interface:
//
// stbi_hdr_to_ldr_gamma(2.2f);
// stbi_hdr_to_ldr_scale(1.0f);
//
// (note, do not use _inverse_ constants; stbi_image will invert them
// appropriately).
//
// Additionally, there is a new, parallel interface for loading files as
// (linear) floats to preserve the full dynamic range:
//
// float *data = stbi_loadf(filename, &x, &y, &n, 0);
//
// If you load LDR images through this interface, those images will
// be promoted to floating point values, run through the inverse of
// constants corresponding to the above:
//
// stbi_ldr_to_hdr_scale(1.0f);
// stbi_ldr_to_hdr_gamma(2.2f);
//
// Finally, given a filename (or an open file or memory block--see header
// file for details) containing image data, you can query for the "most
// appropriate" interface to use (that is, whether the image is HDR or
// not), using:
//
// stbi_is_hdr(char *filename);
//
// ========================
没有合适的资源?快使用搜索试试~ 我知道了~
duilib库的增强拓展版,库修复了大量用户在使用中反馈的Bug,新增了用户需求的功能
共1212个文件
png:613个
h:183个
cpp:144个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 32 浏览量
2023-04-19
15:57:21
上传
评论
收藏 31.9MB ZIP 举报
温馨提示
DuiLib_Ultimate是duilib库的增强拓展版,库修复了大量用户在使用中反馈的Bug,新增了用户需求的功能,主要功能有1、官方原有功能;2、增加资源管理器支持,资源管理更加方便;3、支持多国语言功能;4、高DPI自适应的机制(接口简单,实用方便);6、控件支持样式表(Style)功能,控件属性管理设置更加方便易用;7、新增功能(DateTime控件、IP地址控件、颜色选择控件、List网格线、List多选等);8、修正大量Bug:RichEdit输入变化消息、Combo字体设置、Button自动布局、控件右下边框绘制不完全、菜单控件崩溃等;9、项目内置各种使用例子与编译选项(多字节Unicode,静态库和动态库)
资源推荐
资源详情
资源评论
收起资源包目录
duilib库的增强拓展版,库修复了大量用户在使用中反馈的Bug,新增了用户需求的功能 (1212个子文件)
scrollbar@125.bmp 37KB
scrollbar.bmp 37KB
scrollbar@150.bmp 37KB
scrollbar.bmp 37KB
scrollbar.bmp 37KB
scrollbar.bmp 37KB
scrollbar.bmp 37KB
menu_bk.bmp 24KB
256.bmp 9KB
SliderBar_BK@125.bmp 7KB
SliderBar_BK.bmp 7KB
unfold_hover.bmp 5KB
unfold_pushed.bmp 5KB
fold_hover.bmp 5KB
unfold_nor.bmp 5KB
fold_nor.bmp 5KB
fold_pushed.bmp 5KB
Combo_over.bmp 4KB
Combo_nor.bmp 4KB
297.bmp 3KB
219.bmp 3KB
211.bmp 3KB
213.bmp 3KB
212.bmp 3KB
206.bmp 3KB
209.bmp 3KB
216.bmp 3KB
208.bmp 3KB
217.bmp 3KB
214.bmp 3KB
210.bmp 3KB
215.bmp 3KB
207.bmp 3KB
261.bmp 1KB
274.bmp 976B
225.bmp 956B
224.bmp 956B
221.bmp 956B
223.bmp 956B
226.bmp 956B
222.bmp 956B
241.bmp 920B
286.bmp 918B
279.bmp 824B
272.bmp 824B
273.bmp 824B
281.bmp 824B
271.bmp 824B
282.bmp 824B
298.bmp 822B
hor_line.bmp 792B
tree_hot.bmp 790B
tree_select.bmp 790B
269.bmp 596B
270.bmp 596B
262.bmp 576B
227.bmp 576B
263.bmp 576B
268.bmp 576B
229.bmp 576B
228.bmp 576B
265.bmp 576B
230.bmp 576B
IDB_BITMAP_NETICON_FRONT.bmp 576B
267.bmp 576B
IDB_BITMAP_NETICON_BACK.bmp 576B
264.bmp 576B
colour_004highlight.bmp 564B
colour_005.bmp 564B
colour_003highlight.bmp 564B
colour_004.bmp 564B
colour_007.bmp 564B
colour_007highlight.bmp 564B
colour_002highlight.bmp 564B
colour_006highlight.bmp 564B
colour_001highlight.bmp 564B
colour_002.bmp 564B
colour_005highlight.bmp 564B
colour_001.bmp 564B
colour_003.bmp 560B
colour_006.bmp 560B
colour_008.bmp 556B
colour_008highlight.bmp 552B
239.bmp 500B
220.bmp 448B
240.bmp 196B
285.bmp 124B
218.bmp 116B
stb_image.c 144KB
stb_image.c 144KB
stb_image.c 144KB
unzip.cpp 146KB
XUnzip.cpp 145KB
XUnzip.cpp 145KB
XUnzip.cpp 145KB
Effect.cpp 133KB
UIManager.cpp 130KB
ximadsp.cpp 106KB
UIRender.cpp 96KB
UIList.cpp 89KB
共 1212 条
- 1
- 2
- 3
- 4
- 5
- 6
- 13
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 6651
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Android的学生信息管理2.rar
- 3e9ef566-ba13-47b0-a252-77aa9e4b040f8412130.apk
- 毕业设计基于SSM的房屋租赁系统源【源码+lw+部署+讲解】
- 基于Android男装出口管理系统的app.rar
- 工资表生成工资条Excel模版
- 位运算、状态压缩、枚举子集汇总.html
- C++毕业设计快递分拣机器人系统源码+论文文件+资料.zip
- 锐龙处理器 体质分析工具,体质越好越稳定,越容易超频 tool1007/Win V/F
- IOS Swift3 四种单例模式详解及实例《PPT文档》
- Swin-Unet网络预训练模型,swin-tiny-patch-window7-224.pth
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功