mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Image::GetDPI now const (thanks SergeA)
git-svn-id: svn://ultimatepp.org/upp/trunk@11124 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
13a5bfd911
commit
319f8d4fcd
3 changed files with 3 additions and 3 deletions
|
|
@ -187,7 +187,7 @@ Size Image::GetDots() const
|
|||
return data ? data->buffer.GetDots() : Size(0, 0);
|
||||
}
|
||||
|
||||
Size Image::GetDPI()
|
||||
Size Image::GetDPI() const
|
||||
{
|
||||
Size size = GetSize();
|
||||
Size dots = GetDots();
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ public:
|
|||
Point GetHotSpot() const;
|
||||
Point Get2ndSpot() const;
|
||||
Size GetDots() const;
|
||||
Size GetDPI();
|
||||
Size GetDPI() const;
|
||||
int GetKindNoScan() const;
|
||||
int GetKind() const;
|
||||
int GetResolution() const;
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ dSpot()_[@(0.0.255) const]&]
|
|||
returns Size(0, 0).&]
|
||||
[s3; &]
|
||||
[s4; &]
|
||||
[s5;:Image`:`:GetDPI`(`): [_^topic`:`/`/Core`/src`/Size`$en`-us^ Size]_GetDPI()&]
|
||||
[s5;:Image`:`:GetDPI`(`): [_^Upp`:`:Size^ Size]_[* GetDPI]()_[@(0.0.255) const]&]
|
||||
[s2;%% Returns the image resolution in dpi (dots per inch).&]
|
||||
[s3; &]
|
||||
[s4; &]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue