处理旋转后导出为pdf,图片尺寸不正确
This commit is contained in:
parent
67e6a1bab8
commit
50f77101c8
|
@ -918,6 +918,10 @@ HGResult HGImgView::rotateLeft()
|
|||
return ret;
|
||||
}
|
||||
|
||||
HGUInt xDpi, yDpi;
|
||||
HGBase_GetImageDpi(m_image, &xDpi, &yDpi);
|
||||
HGBase_SetImageDpi(img, xDpi, yDpi);
|
||||
|
||||
HGBase_ImageRotateLeft(m_image, img);
|
||||
|
||||
delete m_qImage;
|
||||
|
@ -956,6 +960,10 @@ HGResult HGImgView::rotateRight()
|
|||
return ret;
|
||||
}
|
||||
|
||||
HGUInt xDpi, yDpi;
|
||||
HGBase_GetImageDpi(m_image, &xDpi, &yDpi);
|
||||
HGBase_SetImageDpi(img, xDpi, yDpi);
|
||||
|
||||
HGBase_ImageRotateRight(m_image, img);
|
||||
|
||||
delete m_qImage;
|
||||
|
|
Loading…
Reference in New Issue