mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Draw: Documented GetDPI() and SetDPI()
git-svn-id: svn://ultimatepp.org/upp/trunk@2702 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
373bec9dd7
commit
d47431eb8d
2 changed files with 16 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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; &]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue