aspect ratio of the image is preserved when the image is scaled.

(Thanks to px268 for the code)
This commit is contained in:
kenz0
2009-08-28 07:42:28 +00:00
parent c6fdbf7b60
commit 5a4304f020
2 changed files with 70 additions and 9 deletions

View File

@ -45,7 +45,9 @@ private:
Gdiplus::Bitmap* m_Bitmap; // The bitmap
std::wstring m_ImageName; // Name of the image
std::wstring m_Path;
bool m_DimensionsDefined;
bool m_WidthDefined;
bool m_HeightDefined;
bool m_PreserveAspectRatio; // If true, aspect ratio of the image is preserved when the image is scaled
HGLOBAL m_hBuffer;
FILETIME m_Modified;
};