This field is required for black and white (1bpp) and grayscale (4bpp or more) images.
It is not possible to transfer JPEG data formatted in one of the Interchange Formats (JFIF, EEXIF) within transfers using the raw format (WiaImgFmt_RAW) - instead, it is necessary to use one of the other JPEG-compatible formats.įor more information on the WIA compression constants, see the WIA_IPA_COMPRESSION property.ĭescribes the photometric interpretation for the image that is transferred. JPEG compressed data (WIA_COMPRESSION_JPEG) could be transferred either using the JFIF format (WiaImgFmt_JPEG), the EEXIF format (WiaImgFmt_EXIF), or the TIFF format (WiaImgFmt_TIFF). G4 compressed data (WIA_COMPRESSION_G4) could be transferred either within a TIFF file (WiaImgFmt_TIFF) or using the raw format (WiaImgFmt_RAW). Values for this field would be WIA_IPA_COMPRESSION constants, possibly vendor-specific for specialized applications. The header for RAW data is as follows: DWORD Tag // must contain 'WRAW' (single byte ASCII characters)ĭWORD Version // must contain 0x00010000ĭWORD HeaderSize // contains amount of valid bytes in headerĭWORD XRes // X (horizontal) resolution, in DPIĭWORD YRes // Y (vertical) resolution, in DPIĭWORD YExtent // image height, in pixelsĭWORD BytesPerLine // used only for uncompressed image data, 0 (unknown) for compressed dataĭWORD BitsPerPixel // number of bits per pixel (all channels)ĭWORD ChannelsPerPixel // number of color channels (samples) within a pixelĭWORD DataType // current WIA_IPA_DATATYPE value describing the imageīYTE BitsPerChannel // up to 8 channels per pixel, use as many as neededĭWORD Compression // current WIA_IPA_COMPRESSION valueĭWORD PhotometricInterp // current WIA_IPS_PHOTOMETRIC_INTERP valueĭWORD LineOrder // image line order as a WIA_LINE_ORDER valueĭWORD RawDataOffset // offset position (in bytes, starting from 0) for the raw image dataĭWORD RawDataSize // size of raw image data, in bytesĭWORD PaletteOffset // offset position (in bytes, starting from 0) for the palette (0 if none)ĭWORD PaletteSize // size, in bytes, of color palette table (0 if no palette is required)Īllows compressed raw formats, such as Nikon's compressed NEF and headerless compressed data used for compressed fax transmissions (Group 3.1, 3.2d, 4).