• 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ónc3325b8dc29780a996a509efd95597875bdab433 (tree)
Tiempo2023-07-23 09:06:08
AutorMio <stigma@disr...>
CommiterMio

Log Message

[magickd] Add PixelWand.getColorCount

Cambiar Resumen

Diferencia incremental

--- a/source/magickd/pixel_wand.d
+++ b/source/magickd/pixel_wand.d
@@ -75,6 +75,14 @@ package(magickd):
7575 }
7676
7777 ///
78+ /// Returns the color count associated with this pixel wand.
79+ ///
80+ @property public ulong colorCount()
81+ {
82+ return this.getColorCount();
83+ }
84+
85+ ///
7886 /// Returns the normalized cyan color of the pixel wand.
7987 ///
8088 @property public double cyan()
@@ -303,6 +311,17 @@ package(magickd):
303311 }
304312
305313 ///
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+ ///
306325 /// Returns the normalized cyan color of the pixel wand.
307326 ///
308327 public double getCyan()