Full Name | Windows cursor |
Format ID | IG_FORMAT_CUR = 96 |
File Extension(s) | *.cur |
Data Type | Raster image |
Data Encoding | Binary |
ImageGear Multipage Support | Yes |
ImageGear Alpha Channel Support | Single alpha channel for read/write (see Comments). |
ImageGear Platforms Support | WIN32, WIN64, Unix, Unix64, .NET, .NET64, MAC |
ImageGear Supported Versions:
Windows 3.x
ImageGear Supported Features:
- IG_FLTR_DETECTSUPPORT - autodetection
- IG_FLTR_PAGEREADSUPPORT - single page file reading
- IG_FLTR_MPAGEREADSUPPORT - multi-page file reading
- IG_FLTR_PAGEINSERTSUPPORT - single-page file writing
ImageGear Read Support:
- IG_COMPRESSION_NONE:
- Indexed + Extra: 1+1, 4+1, 8+1 bpp;
- RGB + Alpha: 32 bpp
- IG_COMPRESSION_RLE:
- Indexed + Extra: 4+1, 8+1 bpp
ImageGear Write Support:
- IG_COMPRESSION_NONE:
- Indexed + Extra: 1+1, 4+1, 8+1 bpp;
- RGB + Alpha: 32 bpp
ImageGear Filter Control Parameters:
Filter Control Parameter | Type | Default Value | Available Values | Description |
READ_AS_RGBA | AT_BOOL | FALSE | TRUE, FALSE | If TRUE, ImageGear reads CUR format as RGBA (RGB with alpha channel). See Comments for more detail. |
Comments:
Cursor files consist of a file header (that is repeated several times), info headers, and cursor data. Cursor data contains an XOR mask bitmap and a monochrome AND mask bitmap. Whenever Windows draws a cursor, the AND bitmap is applied to whatever is on the screen. After that, the XOR bitmap is applied.
READ_AS_RGBA control parameter determines how ImageGear reads the 1-bit AND masks. If READ_AS_RGBA is FALSE, ImageGear reads AND mask into "Extra" channel. This mode preserves unchanged pixel values from the file. However, in this mode ImageGear displays only the XOR mask and ignores AND mask (Extra channel) during display, i.e. display is not transparent. If READ_AS_RGBA is TRUE, ImageGear reads CUR files as 32 bpp RGB + Alpha. This allows transparent display.
Files must be 255x255 pixels or less.
References Used:
A Jorn Daub EDV-Beratung - Glashutter Weg 105 - D-22889 Tangstedt
fileformats@daubnet.com