Converts Pels Per Meter (PPM) to Dots Per Inch (DPI).
Copy Code
|
|
---|---|
LONG ACCUAPI IG_convert_PPM_to_DPI( LONG lPelsPerMeter ); |
Name | Type | Description |
---|---|---|
lPelsPerMeter | LONG | A variable of type LONG, holding the pels per meter (PPM) value that can be converted to dots per inch (DPI). |
Returns a LONG indicating the DPI of an image.
This function does not process image pixels.
None
Copy Code
|
|
---|---|
LONG IPpm, IDpi; ... IPpm=IG_convert_PPM_to_DPI(IPpm); ... |
"Pels" is an abbreviated term for pixels. This function can be useful when you are converting a DIB to a format that supports dots per inch. The header structure of a DIB (the BIMAPINFOHEADER) contains two fields whose values are defined in "pels per meter": LONG biXPelsPerMeter and LONG biYPelsPerMeter.