diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-01-28 16:44:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-28 16:44:13 +0100 |
commit | ac01aef9e3e9839809306efc915f6e4fa4ac303f (patch) | |
tree | aff98a8d89c2507f4efab34fe537a82f986adad7 /doc | |
parent | 89e7c2cb13c6f06eb376aae5e9354f4fabf01f3e (diff) | |
parent | cc0842f9a6b0fda07ca0b8ad483e225b492428c7 (diff) |
Merge pull request #25417 from akien-mga/svg-max-size
Prevent upscaled SVG from exceeding Image bounds
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Image.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml index 56accdcd9e..8868dd778d 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -4,7 +4,7 @@ Image datatype. </brief_description> <description> - Native image datatype. Contains image data, which can be converted to a [Texture], and several functions to interact with it. The maximum width and height for an [code]Image[/code] is 16384 pixels. + Native image datatype. Contains image data, which can be converted to a [Texture], and several functions to interact with it. The maximum width and height for an [code]Image[/code] are [constant MAX_WIDTH] and [constant MAX_HEIGHT]. </description> <tutorials> </tutorials> @@ -476,6 +476,12 @@ </member> </members> <constants> + <constant name="MAX_WIDTH" value="16384"> + The maximal width allowed for [code]Image[/code] resources. + </constant> + <constant name="MAX_HEIGHT" value="16384"> + The maximal height allowed for [code]Image[/code] resources. + </constant> <constant name="FORMAT_L8" value="0" enum="Format"> </constant> <constant name="FORMAT_LA8" value="1" enum="Format"> |