Operation Structures > REGION |
REGION
The REGION structure defines the contents of an image partition. This structure is used to reference general-purpose image regions.
Copy Code | |
---|---|
typedef struct {
BYTE Sig;
BYTE Interlace;
BYTE BitErr;
REGION_FLAGS Flags;
PIXEL_TYPE PixType;
BYTE Bpp;
WORD Width;
WORD Height;
SHORT Stride;
DWORD Offset;
} REGION; |
Name | Description | ||||||||||||||||||||||||||||
Sig |
Must be 0. | ||||||||||||||||||||||||||||
Interlace |
0 if not interlaced, 1 for PNG interface pattern, 2 for GIF interlace pattern. For PT_GRAY/PT_GRAYM JPEG 2000 images, bits 2-4 can hold the vertical subsampling factor minus one and bits 5-7 plus can hold the horizontal subsampling factor minus one. | ||||||||||||||||||||||||||||
Flags |
Attributes of the region.
| ||||||||||||||||||||||||||||
PixType |
Type of pixels which comprise this region.
| ||||||||||||||||||||||||||||
Bpp |
Meaningful bits per pixel | ||||||||||||||||||||||||||||
Width |
Width of region in pixels > 0 | ||||||||||||||||||||||||||||
Height |
Height of region in pixels > 0 | ||||||||||||||||||||||||||||
Stride |
Width in bytes of area containing the region. This value is at least ( Width * Bpp + 7 ) / 8. The stride may be larger than these values if the region is contained within a larger region or if each line is padded (e.g., to a DWORD boundary for Windows bitmaps). | ||||||||||||||||||||||||||||
Offset |
Offset in bytes of start of the region line whose offset has the smallest value. This is the offset of the top image line for a non-interlaced RF_TopDown image. It is the offset of the bottom image line for a non-interlaced image which is not RF_TopDown. |