• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

D bindings to the GraphicsMagick library.


Commit MetaInfo

Revisión00b68594ea0e0eb6fb5ed9ef81bc731f880cc1f8 (tree)
Tiempo2023-07-22 08:16:33
AutorMio <stigma@disr...>
CommiterMio

Log Message

[magickd] PixelWand get/set blue/quantumBlue

Cambiar Resumen

Diferencia incremental

--- a/source/magickd/pixel_wand.d
+++ b/source/magickd/pixel_wand.d
@@ -50,6 +50,9 @@ package(magickd):
5050 }
5151 }
5252
53+ ///
54+ /// Create a new PixelWand structure.
55+ ///
5356 public static PixelWand create()
5457 {
5558 return PixelWand(NewPixelWand());
@@ -58,44 +61,84 @@ package(magickd):
5861 ///
5962 /// Returns the normalized black color of the pixel wand.
6063 ///
61- @property double black()
64+ @property public double black()
6265 {
6366 return this.getBlack();
6467 }
6568
6669 ///
70+ /// Returns the normalized blue color of the pixel wand.
71+ ///
72+ @property public double blue()
73+ {
74+ return this.getBlue();
75+ }
76+
77+ ///
6778 /// Sets the normalized black color of the pixel wand.
6879 ///
69- @property void black(double black_)
80+ @property public void black(double black_)
7081 {
7182 this.setBlack(black_);
7283 }
7384
7485 ///
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+ ///
7594 /// Returns the black color of the pixel wand.
7695 ///
7796 /// The color is in the range of [0..MaxRGB].
7897 ///
7998 /// MaxRGB = [Q8: `255`, Q16: `65_535`, Q32: `4_294_967_295`].
8099 ///
81- @property Quantum quantumBlack()
100+ @property public Quantum quantumBlack()
82101 {
83102 return this.getQuantumBlack();
84103 }
85104
86105 ///
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+ ///
87118 /// Sets the black color of the pixel wand.
88119 ///
89120 /// The color must be in the range of [0..MaxRGB]
90121 ///
91122 /// MaxRGB = [Q8: `255`, Q16: `65_535`, Q32: `4_294_967_295`].
92123 ///
93- @property void quantumBlack(Quantum black_)
124+ @property public void quantumBlack(Quantum black_)
94125 {
95126 this.setQuantumBlack(black_);
96127 }
97128
98129 ///
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+ ///
99142 /// Sets the color of the pixel wand with a string.
100143 ///
101144 /// ```d
@@ -123,7 +166,7 @@ package(magickd):
123166 ///
124167 /// Returns the normalized black color of the pixel wand.
125168 ///
126- double getBlack()
169+ public double getBlack()
127170 in {
128171 assert(null !is this.ptr, "Attempting to use a PixelWand that hasn't been created.");
129172 }
@@ -132,13 +175,24 @@ package(magickd):
132175 }
133176
134177 ///
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+ ///
135189 /// Returns the black color of the pixel wand.
136190 ///
137191 /// The color is in the range of [0..MaxRGB].
138192 ///
139193 /// MaxRGB = [Q8: `255`, Q16: `65_535`, Q32: `4_294_967_295`].
140194 ///
141- Quantum getQuantumBlack()
195+ public Quantum getQuantumBlack()
142196 in {
143197 assert(null !is this.ptr, "Attempting to use a PixelWand that hasn't been created.");
144198 }
@@ -147,9 +201,24 @@ package(magickd):
147201 }
148202
149203 ///
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+ ///
150219 /// Sets the normalized black color of the pixel wand.
151220 ///
152- void setBlack(double black_)
221+ public void setBlack(double black_)
153222 in {
154223 assert(null !is this.ptr, "Attempting to use a PixelWand that hasn't been created.");
155224 }
@@ -158,17 +227,43 @@ package(magickd):
158227 }
159228
160229 ///
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+ ///
161241 /// Sets the black color of the pixel wand.
162242 ///
163243 /// The color must be in the range of [0..MaxRGB]
164244 ///
165245 /// MaxRGB = [Q8: `255`, Q16: `65_535`, Q32: `4_294_967_295`].
166246 ///
167- void setQuantumBlack(Quantum black_)
247+ public void setQuantumBlack(Quantum black_)
168248 in {
169249 assert(null !is this.ptr, "Attempting to use a PixelWand that hasn't been created.");
170250 }
171251 do {
172252 PixelSetBlackQuantum(this.ptr, black_);
173253 }
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+ }
174269 }