D bindings to the GraphicsMagick library.
Revisión | 00b68594ea0e0eb6fb5ed9ef81bc731f880cc1f8 (tree) |
---|---|
Tiempo | 2023-07-22 08:16:33 |
Autor | Mio <stigma@disr...> |
Commiter | Mio |
[magickd] PixelWand get/set blue/quantumBlue
@@ -50,6 +50,9 @@ package(magickd): | ||
50 | 50 | } |
51 | 51 | } |
52 | 52 | |
53 | + /// | |
54 | + /// Create a new PixelWand structure. | |
55 | + /// | |
53 | 56 | public static PixelWand create() |
54 | 57 | { |
55 | 58 | return PixelWand(NewPixelWand()); |
@@ -58,44 +61,84 @@ package(magickd): | ||
58 | 61 | /// |
59 | 62 | /// Returns the normalized black color of the pixel wand. |
60 | 63 | /// |
61 | - @property double black() | |
64 | + @property public double black() | |
62 | 65 | { |
63 | 66 | return this.getBlack(); |
64 | 67 | } |
65 | 68 | |
66 | 69 | /// |
70 | + /// Returns the normalized blue color of the pixel wand. | |
71 | + /// | |
72 | + @property public double blue() | |
73 | + { | |
74 | + return this.getBlue(); | |
75 | + } | |
76 | + | |
77 | + /// | |
67 | 78 | /// Sets the normalized black color of the pixel wand. |
68 | 79 | /// |
69 | - @property void black(double black_) | |
80 | + @property public void black(double black_) | |
70 | 81 | { |
71 | 82 | this.setBlack(black_); |
72 | 83 | } |
73 | 84 | |
74 | 85 | /// |
86 | + /// Sets the normalized blue color of the pixel wand. | |
87 | + /// | |
88 | + @property public void blue(double blue_) | |
89 | + { | |
90 | + this.setBlue(blue_); | |
91 | + } | |
92 | + | |
93 | + /// | |
75 | 94 | /// Returns the black color of the pixel wand. |
76 | 95 | /// |
77 | 96 | /// The color is in the range of [0..MaxRGB]. |
78 | 97 | /// |
79 | 98 | /// MaxRGB = [Q8: `255`, Q16: `65_535`, Q32: `4_294_967_295`]. |
80 | 99 | /// |
81 | - @property Quantum quantumBlack() | |
100 | + @property public Quantum quantumBlack() | |
82 | 101 | { |
83 | 102 | return this.getQuantumBlack(); |
84 | 103 | } |
85 | 104 | |
86 | 105 | /// |
106 | + /// Returns the blue color of the pixel wand. | |
107 | + /// | |
108 | + /// The color is in the range of [0..MaxRGB]. | |
109 | + /// | |
110 | + /// MaxRGB = [Q8: `255`, Q16: `65_535`, Q32: `4_294_967_295`]. | |
111 | + /// | |
112 | + @property public Quantum quantumBlue() | |
113 | + { | |
114 | + return this.getQuantumBlue(); | |
115 | + } | |
116 | + | |
117 | + /// | |
87 | 118 | /// Sets the black color of the pixel wand. |
88 | 119 | /// |
89 | 120 | /// The color must be in the range of [0..MaxRGB] |
90 | 121 | /// |
91 | 122 | /// MaxRGB = [Q8: `255`, Q16: `65_535`, Q32: `4_294_967_295`]. |
92 | 123 | /// |
93 | - @property void quantumBlack(Quantum black_) | |
124 | + @property public void quantumBlack(Quantum black_) | |
94 | 125 | { |
95 | 126 | this.setQuantumBlack(black_); |
96 | 127 | } |
97 | 128 | |
98 | 129 | /// |
130 | + /// Sets the blue color of the pixel wand. | |
131 | + /// | |
132 | + /// The color must be in the range of [0..MaxRGB] | |
133 | + /// | |
134 | + /// MaxRGB = [Q8: `255`, Q16: `65_535`, Q32: `4_294_967_295`]. | |
135 | + /// | |
136 | + @property public void quantumBlue(Quantum blue_) | |
137 | + { | |
138 | + this.setQuantumBlue(blue_); | |
139 | + } | |
140 | + | |
141 | + /// | |
99 | 142 | /// Sets the color of the pixel wand with a string. |
100 | 143 | /// |
101 | 144 | /// ```d |
@@ -123,7 +166,7 @@ package(magickd): | ||
123 | 166 | /// |
124 | 167 | /// Returns the normalized black color of the pixel wand. |
125 | 168 | /// |
126 | - double getBlack() | |
169 | + public double getBlack() | |
127 | 170 | in { |
128 | 171 | assert(null !is this.ptr, "Attempting to use a PixelWand that hasn't been created."); |
129 | 172 | } |
@@ -132,13 +175,24 @@ package(magickd): | ||
132 | 175 | } |
133 | 176 | |
134 | 177 | /// |
178 | + /// Returns the normalized blue color of the pixel wand. | |
179 | + /// | |
180 | + public double getBlue() | |
181 | + in { | |
182 | + assert(null !is this.ptr, "Attempting to use a PixelWand that hasn't been created."); | |
183 | + } | |
184 | + do { | |
185 | + return PixelGetBlue(this.ptr); | |
186 | + } | |
187 | + | |
188 | + /// | |
135 | 189 | /// Returns the black color of the pixel wand. |
136 | 190 | /// |
137 | 191 | /// The color is in the range of [0..MaxRGB]. |
138 | 192 | /// |
139 | 193 | /// MaxRGB = [Q8: `255`, Q16: `65_535`, Q32: `4_294_967_295`]. |
140 | 194 | /// |
141 | - Quantum getQuantumBlack() | |
195 | + public Quantum getQuantumBlack() | |
142 | 196 | in { |
143 | 197 | assert(null !is this.ptr, "Attempting to use a PixelWand that hasn't been created."); |
144 | 198 | } |
@@ -147,9 +201,24 @@ package(magickd): | ||
147 | 201 | } |
148 | 202 | |
149 | 203 | /// |
204 | + /// Returns the blue color of the pixel wand. | |
205 | + /// | |
206 | + /// The color is in the range of [0..MaxRGB]. | |
207 | + /// | |
208 | + /// MaxRGB = [Q8: `255`, Q16: `65_535`, Q32: `4_294_967_295`]. | |
209 | + /// | |
210 | + public Quantum getQuantumBlue() | |
211 | + in { | |
212 | + assert(null !is this.ptr, "Attempting to use a PixelWand that hasn't been created."); | |
213 | + } | |
214 | + do { | |
215 | + return PixelGetBlueQuantum(this.ptr); | |
216 | + } | |
217 | + | |
218 | + /// | |
150 | 219 | /// Sets the normalized black color of the pixel wand. |
151 | 220 | /// |
152 | - void setBlack(double black_) | |
221 | + public void setBlack(double black_) | |
153 | 222 | in { |
154 | 223 | assert(null !is this.ptr, "Attempting to use a PixelWand that hasn't been created."); |
155 | 224 | } |
@@ -158,17 +227,43 @@ package(magickd): | ||
158 | 227 | } |
159 | 228 | |
160 | 229 | /// |
230 | + /// Sets the normalized blue color of the pixel wand. | |
231 | + /// | |
232 | + public void setBlue(double blue_) | |
233 | + in { | |
234 | + assert(null !is this.ptr, "Attempting to use a PixelWand that hasn't been created."); | |
235 | + } | |
236 | + do { | |
237 | + PixelSetBlue(this.ptr, blue_); | |
238 | + } | |
239 | + | |
240 | + /// | |
161 | 241 | /// Sets the black color of the pixel wand. |
162 | 242 | /// |
163 | 243 | /// The color must be in the range of [0..MaxRGB] |
164 | 244 | /// |
165 | 245 | /// MaxRGB = [Q8: `255`, Q16: `65_535`, Q32: `4_294_967_295`]. |
166 | 246 | /// |
167 | - void setQuantumBlack(Quantum black_) | |
247 | + public void setQuantumBlack(Quantum black_) | |
168 | 248 | in { |
169 | 249 | assert(null !is this.ptr, "Attempting to use a PixelWand that hasn't been created."); |
170 | 250 | } |
171 | 251 | do { |
172 | 252 | PixelSetBlackQuantum(this.ptr, black_); |
173 | 253 | } |
254 | + | |
255 | + /// | |
256 | + /// Sets the blue color of the pixel wand. | |
257 | + /// | |
258 | + /// The color must be in the range of [0..MaxRGB] | |
259 | + /// | |
260 | + /// MaxRGB = [Q8: `255`, Q16: `65_535`, Q32: `4_294_967_295`]. | |
261 | + /// | |
262 | + public void setQuantumBlue(Quantum blue_) | |
263 | + in { | |
264 | + assert(null !is this.ptr, "Attempting to use a PixelWand that hasn't been created."); | |
265 | + } | |
266 | + do { | |
267 | + PixelSetBlueQuantum(this.ptr, blue_); | |
268 | + } | |
174 | 269 | } |