File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1010,6 +1010,15 @@ surface
1010
1010
Internally, sets :py:class:`ImageInfo` to width, height, native color
1011
1011
type, and :py:attr:`AlphaType.kPremul`.
1012
1012
1013
+ Note that the :py:class:`ImageInfo` native color type might not be what
1014
+ you desire, if you intent to interact with other software expecting
1015
+ specific color type order. e.g. package `wx`'s `wx.Bitmap.FromBufferRGBA`.
1016
+ For that purpose, you need one of the other :py:class:`Surface`
1017
+ constructors which takes an explicit appropriate matching
1018
+ :py:class:`ImageInfo` input, or one that an explicit :py:class:`ColorType`
1019
+ input. You should check the output of `surface.imageInfo().colorType()`
1020
+ afterwards, in that usage.
1021
+
1013
1022
:py:class:`Surface` is returned if width and height are greater than
1014
1023
zero.
1015
1024
You can’t perform that action at this time.
0 commit comments