瀏覽代碼

Document image size limits

This closes #30238.

(cherry picked from commit 5497cec7a1c6e724f979b506a53bb07b5f71ce17)
Hugo Locurcio 5 年之前
父節點
當前提交
4f7296a869
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      doc/classes/Image.xml
  2. 1 0
      doc/classes/ImageTexture.xml

+ 1 - 0
doc/classes/Image.xml

@@ -5,6 +5,7 @@
 	</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 [Image] are [constant MAX_WIDTH] and [constant MAX_HEIGHT].
+		[b]Note:[/b] The maximum image size is 16384×16384 pixels due to graphics hardware limitations. Larger images will fail to import.
 	</description>
 	<tutorials>
 	</tutorials>

+ 1 - 0
doc/classes/ImageTexture.xml

@@ -5,6 +5,7 @@
 	</brief_description>
 	<description>
 		A [Texture] based on an [Image]. Can be created from an [Image] with [method create_from_image].
+		[b]Note:[/b] The maximum image size is 16384×16384 pixels due to graphics hardware limitations. Larger images will fail to import.
 	</description>
 	<tutorials>
 	</tutorials>