Resize images with preserve aspect ratio
This commit is contained in:
parent
56f9cc683a
commit
abffd98e29
4 changed files with 35 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue