Merge branch 'dev' of http://192.168.10.5:8099/sane/code_app into dev
This commit is contained in:
commit
23786ed849
|
@ -558,8 +558,8 @@ static HGResult LoadGdiImage(Gdiplus::Image* pImage, const HGImageRoi* roi, HGUI
|
||||||
|
|
||||||
if (HGBASE_ERR_OK == ret)
|
if (HGBASE_ERR_OK == ret)
|
||||||
{
|
{
|
||||||
HGUInt xDpi = (HGUInt)pImage->GetHorizontalResolution();
|
HGUInt xDpi = (HGUInt)((double)pImage->GetHorizontalResolution() + 0.5);
|
||||||
HGUInt yDpi = (HGUInt)pImage->GetVerticalResolution();
|
HGUInt yDpi = (HGUInt)((double)pImage->GetVerticalResolution() + 0.5);
|
||||||
HGBase_SetImageDpi(*image, xDpi, yDpi);
|
HGBase_SetImageDpi(*image, xDpi, yDpi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue