D bindings to the GraphicsMagick library.
Revision | c3325b8dc29780a996a509efd95597875bdab433 (tree) |
---|---|
Zeit | 2023-07-23 09:06:08 |
Autor | Mio <stigma@disr...> |
Commiter | Mio |
[magickd] Add PixelWand.getColorCount
@@ -75,6 +75,14 @@ package(magickd): | ||
75 | 75 | } |
76 | 76 | |
77 | 77 | /// |
78 | + /// Returns the color count associated with this pixel wand. | |
79 | + /// | |
80 | + @property public ulong colorCount() | |
81 | + { | |
82 | + return this.getColorCount(); | |
83 | + } | |
84 | + | |
85 | + /// | |
78 | 86 | /// Returns the normalized cyan color of the pixel wand. |
79 | 87 | /// |
80 | 88 | @property public double cyan() |
@@ -303,6 +311,17 @@ package(magickd): | ||
303 | 311 | } |
304 | 312 | |
305 | 313 | /// |
314 | + /// Returns the color count associated with this pixel wand. | |
315 | + /// | |
316 | + public ulong getColorCount() | |
317 | + in { | |
318 | + assert(null !is this.ptr, "Attempting to use a PixelWand that hasn't been created."); | |
319 | + } | |
320 | + do { | |
321 | + return PixelGetColorCount(this.ptr); | |
322 | + } | |
323 | + | |
324 | + /// | |
306 | 325 | /// Returns the normalized cyan color of the pixel wand. |
307 | 326 | /// |
308 | 327 | public double getCyan() |