Resize images with preserve aspect ratio

This commit is contained in:
Kevin Sawicki 2016-10-05 09:15:06 -07:00
parent 56f9cc683a
commit abffd98e29
4 changed files with 35 additions and 6 deletions

View file

@ -84,6 +84,7 @@ class NativeImage : public mate::Wrappable<NativeImage> {
std::string ToDataURL();
bool IsEmpty();
gfx::Size GetSize();
float GetAspectRatio();
// Mark the image as template image.
void SetTemplateImage(bool setAsTemplate);