ImageGear Professional v18.2 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Resolution Unit Conversion Functions > IG_convert_DPI_to_PPM |
Converts Dots Per Inch (DPI) to Pels Per Meter (PPM).
Copy Code
|
|
---|---|
LONG ACCUAPI IG_convert_DPI_to_PPM( LONG lDotsPerInch ); |
Name | Type | Description |
lDotsPerInch | LONG | A variable of type LONG, holding the DPI value that can be converted to PPM (pels per meter). |
Returns a LONG indicating the pels per meter of an image.
This function does not process image pixels.
None
Copy Code
|
|
---|---|
LONG IPpm, IDpi; ... IPpm=IG_convert_DPI_to_PPM(IPpi); ... |
"Pels" is an abbreviated term for pixels. This function can be useful when you are converting a file that supports dots per inch to a DIB format, which supports pels per meter. The header structure of a DIB (the BIMAPINFOHEADER) contains two fields whose values are defined in "pels per meter": LONG biXPelsPerMeter and LONG biYPelsPerMeter.