You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ read data from PPM/PGM file to nested image data list, where:
99
99
100
100
Convert nested image data list to PGM P5 or PPM P6 (binary) data structure in memory, where:
101
101
102
-
-`image3D` - `Y*X*Z` list (image) of lists (rows) of lists (pixels) of ints (channels);
102
+
-`image3D` - `Y * X * Z` list (image) of lists (rows) of lists (pixels) of ints (channels);
103
103
-`maxcolors` - number of colors per channel for current image (int);
104
104
-`show_chessboard` - optional bool, set `True` to show LA and RGBA images against chessboard pattern; `False` or missing show existing L or RGB data for transparent areas as opaque. Default is `False` for backward compatibility;
105
105
-`image_bytes` - PNM-structured binary data.
@@ -116,7 +116,7 @@ Note that Tkinter used for Python 3.10 displays some hight-color images incorrec
116
116
117
117
Write PGM P5 or PPM P6 (binary) file from nested image data list, where:
118
118
119
-
-`image3D` - `Y*X*Z` list (image) of lists (rows) of lists (pixels) of ints (channels);
119
+
-`image3D` - `Y * X * Z` list (image) of lists (rows) of lists (pixels) of ints (channels);
120
120
-`maxcolors` - number of colors per channel for current image (int);
121
121
-`out_filename` - PNM file name.
122
122
@@ -126,7 +126,7 @@ Write PGM P5 or PPM P6 (binary) file from nested image data list, where:
126
126
127
127
Write PGM P2 or PPM P3 (ASCII text) file from nested image data list, where:
128
128
129
-
-`image3D` - `Y*X*Z` list (image) of lists (rows) of lists (pixels) of ints (channels);
129
+
-`image3D` - `Y * X * Z` list (image) of lists (rows) of lists (pixels) of ints (channels);
130
130
-`maxcolors` - number of colors per channel for current image (int);
131
131
-`out_filename` - PNM file name.
132
132
@@ -136,18 +136,18 @@ Write PGM P2 or PPM P3 (ASCII text) file from nested image data list, where:
136
136
137
137
Write either binary or ASCII file from nested image data list, where:
138
138
139
-
-`image3D` - `Y*X*Z` list (image) of lists (rows) of lists (pixels) of ints (channels);
139
+
-`image3D` - `Y * X * Z` list (image) of lists (rows) of lists (pixels) of ints (channels);
140
140
-`maxcolors` - number of colors per channel for current image (int);
141
141
-`bin` - switch defining whether to write binary file or ASCII (bool). Default is True, meaning binary output, to provide backward compatibility.
142
142
-`out_filename` - Name of PNM file to be written.
143
143
144
-
Note that `list2pnm`, is merely a switch between `list2pnmbin` and `list2pnmascii`, introduced for simplifying writing "Save as..." GUI dialog functions - now you can use one function for all PNM flavours, passing `bin` via lambda, is necessary.
144
+
Note that `list2pnm` is merely a switch between `list2pnmbin` and `list2pnmascii`, introduced for simplifying writing "Save as..." GUI dialog functions - now you can use one function for all PNM flavours, passing `bin` via lambda, if necessary. Default is `bin = True`.
0 commit comments