Available in the LEADTOOLS Imaging toolkit.
BitmapXres and BitmapYres example for C++ 4.0 and later
This example sets the bitmap's resolution to 300 x 600 DPI.
m_Lead1.SetBitmapXRes(300); m_Lead1.SetBitmapYRes(600);