Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
il_icon.h
Package: devil-1.7.99.tar.gz [view]
Upload User: wmy0603
Upload Date: 2022-05-02
Package Size: 1808k
Code Size: 2k
Category:
Compress-Decompress algrithms
Development Platform:
Visual C++
- //-----------------------------------------------------------------------------
- //
- // ImageLib Sources
- // Copyright (C) 2000-2002 by Denton Woods
- // Last modified: 05/25/2001 <--Y2K Compliant! =]
- //
- // Filename: src-IL/include/il_icon.h
- //
- // Description: Reads from a Windows icon (.ico) file.
- //
- //-----------------------------------------------------------------------------
- #ifndef ICON_H
- #define ICON_H
- #include "il_internal.h"
- #ifdef _WIN32
- #pragma pack(push, ico_struct, 1)
- #endif
- typedef struct ICODIR
- {
- ILshort Reserved; // Reserved (must be 0)
- ILshort Type; // Type (1 for icons, 2 for cursors)
- ILshort Count; // How many different images?
- } IL_PACKSTRUCT ICODIR;
- typedef struct ICODIRENTRY
- {
- ILubyte Width; // Width, in pixels
- ILubyte Height; // Height, in pixels
- ILubyte NumColours; // Number of colors in image (0 if >=8bpp)
- ILubyte Reserved; // Reserved (must be 0)
- ILshort Planes; // Colour planes
- ILshort Bpp; // Bits per pixel
- ILuint SizeOfData; // How many bytes in this resource?
- ILuint Offset; // Offset from beginning of the file
- } IL_PACKSTRUCT ICODIRENTRY;
- typedef struct INFOHEAD
- {
- ILint Size;
- ILint Width;
- ILint Height;
- ILshort Planes;
- ILshort BitCount;
- ILint Compression;
- ILint SizeImage;
- ILint XPixPerMeter;
- ILint YPixPerMeter;
- ILint ColourUsed;
- ILint ColourImportant;
- } IL_PACKSTRUCT INFOHEAD;
- typedef struct ICOIMAGE
- {
- INFOHEAD Head;
- ILubyte *Pal; // Palette
- ILubyte *Data; // XOR mask
- ILubyte *AND; // AND mask
- } ICOIMAGE;
- #ifdef _WIN32
- #pragma pack(pop, ico_struct)
- #endif
- ILboolean iLoadIconInternal();
- ILboolean iLoadIconPNG(ICOIMAGE *Icon);
- #endif//ICON_H