D bindings to the GraphicsMagick library.
修订版 | 78a52a296317f6fe268a9d3f6aff152e121a8273 (tree) |
---|---|
时间 | 2023-07-22 15:00:19 |
作者 | Mio <stigma@disr...> |
Commiter | Mio |
[magickd] MagickWand#getImageIndex/getNumberImages
@@ -243,6 +243,28 @@ package(magickd): | ||
243 | 243 | } |
244 | 244 | |
245 | 245 | /// |
246 | + /// Returns the index of the current image. | |
247 | + /// | |
248 | + public long getImageIndex() nothrow | |
249 | + in { | |
250 | + assert(null !is this.ptr, "Attempting to use a MagickWand that hasn't been created."); | |
251 | + } | |
252 | + do { | |
253 | + return MagickGetImageIndex(this.ptr); | |
254 | + } | |
255 | + | |
256 | + /// | |
257 | + /// Returns the number of images associated with this MagickWand. | |
258 | + /// | |
259 | + public ulong getNumberImages() nothrow | |
260 | + in { | |
261 | + assert(null !is this.ptr, "Attempting to use a MagickWand that hasn't been created."); | |
262 | + } | |
263 | + do { | |
264 | + return MagickGetNumberImages(this.ptr); | |
265 | + } | |
266 | + | |
267 | + /// | |
246 | 268 | /// Retrieve the size associated with this MagickWand. |
247 | 269 | /// |
248 | 270 | /// Params: |