mirror of
https://github.com/lovell/sharp.git
synced 2026-02-06 14:46:16 +01:00
Add gravity support to embed feature (#1038)
This commit is contained in:
committed by
Lovell Fuller
parent
1d7a0ea99e
commit
927b77700d
@@ -206,6 +206,13 @@ namespace sharp {
|
||||
*/
|
||||
std::string VipsWarningPop();
|
||||
|
||||
/*
|
||||
Calculate the (left, top) coordinates of the output image
|
||||
within the input image, applying the given gravity during an embed.
|
||||
*/
|
||||
std::tuple<int, int> CalculateEmbedPosition(int const inWidth, int const inHeight,
|
||||
int const outWidth, int const outHeight, int const gravity);
|
||||
|
||||
/*
|
||||
Calculate the (left, top) coordinates of the output image
|
||||
within the input image, applying the given gravity.
|
||||
|
||||
Reference in New Issue
Block a user