Skip to content

Commit 5f82f13

Browse files
committed
Merge pull request #110213 from BlueCube3310/image-alpha-doc
Image: Improve `AlphaMode` documentation
2 parents 2557b0d + feb3e90 commit 5f82f13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/classes/Image.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -783,13 +783,13 @@
783783
Performs Lanczos interpolation. This is the slowest image resizing mode, but it typically gives the best results, especially when downscaling images.
784784
</constant>
785785
<constant name="ALPHA_NONE" value="0" enum="AlphaMode">
786-
Image does not have alpha.
786+
Image is fully opaque. It does not store alpha data.
787787
</constant>
788788
<constant name="ALPHA_BIT" value="1" enum="AlphaMode">
789-
Image stores alpha in a single bit.
789+
Image stores either fully opaque or fully transparent pixels. Also known as punchthrough alpha.
790790
</constant>
791791
<constant name="ALPHA_BLEND" value="2" enum="AlphaMode">
792-
Image uses alpha.
792+
Image stores alpha data with values varying between [code]0.0[/code] and [code]1.0[/code].
793793
</constant>
794794
<constant name="COMPRESS_S3TC" value="0" enum="CompressMode">
795795
Use S3TC compression.

0 commit comments

Comments
 (0)