mirror of
https://github.com/lovell/sharp.git
synced 2026-02-05 14:16:17 +01:00
Expose density metadata; set density of images from vector input
This commit is contained in:
15
src/common.h
15
src/common.h
@@ -77,6 +77,21 @@ namespace sharp {
|
||||
*/
|
||||
void RemoveExifOrientation(VImage image);
|
||||
|
||||
/*
|
||||
Does this image have a non-default density?
|
||||
*/
|
||||
bool HasDensity(VImage image);
|
||||
|
||||
/*
|
||||
Get pixels/mm resolution as pixels/inch density.
|
||||
*/
|
||||
int GetDensity(VImage image);
|
||||
|
||||
/*
|
||||
Set pixels/mm resolution based on a pixels/inch density.
|
||||
*/
|
||||
void SetDensity(VImage image, const int density);
|
||||
|
||||
/*
|
||||
Called when a Buffer undergoes GC, required to support mixed runtime libraries in Windows
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user