diff --git a/uppsrc/Draw/src.tpp/Image$en-us.tpp b/uppsrc/Draw/src.tpp/Image$en-us.tpp index 4752931a4..585ad92d9 100644 --- a/uppsrc/Draw/src.tpp/Image$en-us.tpp +++ b/uppsrc/Draw/src.tpp/Image$en-us.tpp @@ -64,6 +64,10 @@ erator`[`]([@(0.0.255) int]_[@3 i])_[@(0.0.255) const]&] returns Size(0, 0).&] [s3; &] [s4; &] +[s5;:Image`:`:GetDPI`(`): [_^Size^ Size]_GetDPI()&] +[s2;%% Returns the image resolution in dpi (dots per inch).&] +[s3; &] +[s4; &] [s5;:Image`:`:GetKindNoScan`(`)const: [@(0.0.255) int]_GetKindNoScan()_[@(0.0.255) const]&] [s2;%% Returns the kind of image. Unlike GetKind(), it does not perform the scan of image if the kind it not know, therefore it can return diff --git a/uppsrc/Draw/src.tpp/ImageBuffer$en-us.tpp b/uppsrc/Draw/src.tpp/ImageBuffer$en-us.tpp index d62fad861..a1dfa2488 100644 --- a/uppsrc/Draw/src.tpp/ImageBuffer$en-us.tpp +++ b/uppsrc/Draw/src.tpp/ImageBuffer$en-us.tpp @@ -95,6 +95,18 @@ st]&] 0).&] [s3; &] [s4; &] +[s5;:ImageBuffer`:`:SetDPI`(Size`): [@(0.0.255) void]_[* SetDPI]([_^Size^ Size]_[*@3 sz])&] +[s2;%% Sets the image resolution in dpi (dots per inch).&] +[s2;%% As the dpi are not directly stored, if SetDots() is called +or image is resized, the dpi could change.&] +[s3;%% &] +[s4; &] +[s5;:ImageBuffer`:`:GetDPI`(`): [_^Size^ Size]_[* GetDPI]()&] +[s2;%% Returns the image resolution in dpi (dots per inch).&] +[s2;%% As the dpi are not directly stored, if SetDots() is called +or image is resized, the dpi could change.&] +[s3; &] +[s4; &] [s5;:ImageBuffer`:`:GetSize`(`)const: [*_^Size^ Size][* _GetSize()_][*@(0.0.255) const]&] [s2;%% Returns the dimensions of image.&] [s3; &]