#include <DLImageHead.h>
Public Types | |
enum | DLBitDepths { DL_BITDEPTH_UNKNOWN = -1, DL_BITDEPTH_1 = 1, DL_BITDEPTH_8 = 8, DL_BITDEPTH_24 = 24 } |
enum | DLDataAlignments { DL_UNKNOWN_ALIGN = -1, DL_1BYTE_ALIGN = 1, DL_4BYTE_ALIGN = 4 } |
Public Member Functions | |
DLImageHead () | |
DLImageHead (const DLImageHead &orig) | |
const DLImageHead & | operator= (const DLImageHead &right) |
virtual | ~DLImageHead () |
int | dlGetRowSize () const |
| |
Public Attributes | |
DLTagList | imageTags |
image tags | |
int | width |
image width | |
int | height |
image height | |
DLBitDepths | depth |
image bit depth | |
int | channels |
image channels | |
DLColor::DLColorTypes | colorModel |
image color model | |
int | rowSize |
image row size | |
DLDataAlignments | dataAlignment |
image data alignment | |
int | dataOrder |
Not currently used. | |
float | horizontalResolution |
horizontal resolution | |
float | verticalResolution |
vertical resolution | |
bool | resolutionFlag |
image resolution flag |
The DLImageHead class holds all of the generic image header information needed to perform image processing functions
Definition at line 14 of file DLImageHead.h.
A selection of possible image bit depths
Definition at line 30 of file DLImageHead.h.
A selection of possible data alignments
Definition at line 41 of file DLImageHead.h.
DLImageHead::DLImageHead | ( | ) |
DLImageHead Default Constructor
DLImageHead::DLImageHead | ( | const DLImageHead & | orig | ) |
DLImageHead Copy Constructor
virtual DLImageHead::~DLImageHead | ( | ) | [virtual] |
DLImageHead destructor
const DLImageHead& DLImageHead::operator= | ( | const DLImageHead & | right | ) |
Assignment operator
right | DLImageHead |
int DLImageHead::dlGetRowSize | ( | ) | const [inline] |
Definition at line 135 of file DLImageHead.h.
References depth, DL_BITDEPTH_1, DL_BITDEPTH_24, DL_BITDEPTH_8, and width.
image tags
A set of user-defined tags containing image metadata.
Definition at line 62 of file DLImageHead.h.
Referenced by DLImage::dlClearTags(), DLImage::dlFindTag(), DLImage::dlGetTagListBegin(), DLImage::dlGetTagListEnd(), and DLImage::dlIsTagListEmpty().
image width
Definition at line 65 of file DLImageHead.h.
Referenced by dlGetRowSize(), and DLImage::dlGetWidth().
image bit depth
Number of bits per image pixel; can be one of:
Definition at line 78 of file DLImageHead.h.
Referenced by DLImage::dlGetDepth(), and dlGetRowSize().
image channels
Number of data channels in the image; usually 3 for 24-bit color RGB images, and 1 for binary, grayscale or palettized images.
Definition at line 84 of file DLImageHead.h.
Referenced by DLImage::dlGetChannels().
image color model
Can be one of:
Definition at line 95 of file DLImageHead.h.
Referenced by DLImage::dlGetColorModel().
image row size
Number of bytes needed to store the raw data of a single row of the image.
Definition at line 100 of file DLImageHead.h.
Referenced by DLImage::dlGetRowSize().
image data alignment
Can be either:
Definition at line 109 of file DLImageHead.h.
Referenced by DLImage::dlGetDataAlignment().
Not currently used.
Definition at line 112 of file DLImageHead.h.
Referenced by DLImage::dlGetDataOrder().
horizontal resolution
Measurement units are indicated by DLImageHead::resolutionFlag.
Definition at line 117 of file DLImageHead.h.
Referenced by DLImage::dlGetHorizontalResolution(), and DLImage::dlSetHorizontalResolution().
vertical resolution
Measurement units are indicated by DLImageHead::resolutionFlag.
Definition at line 122 of file DLImageHead.h.
Referenced by DLImage::dlGetVerticalResolution(), and DLImage::dlSetVerticalResolution().
image resolution flag
Indicates the units of measurement for the image resolution values. Upon opening an image of any format containing resolution information, DOCLIB automatically converts the resolution to dots-per-inch (or unitless, if the image does not indicate the units used).
true
if the image resolution is in dpi false
if the resolution is unitless Definition at line 132 of file DLImageHead.h.
Referenced by DLImage::dlGetResolutionFlag(), and DLImage::dlSetResolutionFlag().