@@ -218,7 +218,7 @@ class MagickPixelPacket(ctypes.Structure):
218218 library .MagickWriteImageFile .argtypes = [ctypes .c_void_p , ctypes .c_void_p ]
219219
220220 library .MagickGetImageResolution .argtypes = [
221- ctypes .c_void_p , ctypes . POINTER ( ctypes . c_double ),
221+ ctypes .c_void_p ,
222222 ctypes .POINTER (ctypes .c_double )
223223 ]
224224
@@ -228,7 +228,6 @@ class MagickPixelPacket(ctypes.Structure):
228228
229229 library .MagickSetResolution .argtypes = [ctypes .c_void_p , ctypes .c_double ,
230230 ctypes .c_double ]
231- library .MagickSetResolution .restype = ctypes .c_bool
232231
233232 library .MagickGetImageWidth .argtypes = [ctypes .c_void_p ]
234233 library .MagickGetImageWidth .restype = ctypes .c_size_t
@@ -372,12 +371,195 @@ class MagickPixelPacket(ctypes.Structure):
372371
373372 library .MagickTrimImage .argtypes = [ctypes .c_void_p ]
374373
374+ library .MagickGetSize .argtypes = [ctypes .c_void_p ,
375+ ctypes .POINTER (ctypes .c_uint ),
376+ ctypes .POINTER (ctypes .c_uint )]
377+ library .MagickGetSize .restype = ctypes .c_int
378+
379+ library .MagickSetSize .argtypes = [ctypes .c_void_p ,
380+ ctypes .c_uint ,
381+ ctypes .c_uint ]
382+ library .MagickSetSize .restype = ctypes .c_int
383+
384+ library .MagickGetFont .argtypes = [ctypes .c_void_p ]
385+ library .MagickGetFont .restype = ctypes .c_char_p
386+
387+ library .MagickSetFont .argtypes = [ctypes .c_void_p ,
388+ ctypes .c_char_p ]
389+ library .MagickSetFont .restype = ctypes .c_int
390+
391+ library .MagickGetPointsize .argtypes = [ctypes .c_void_p ]
392+ library .MagickGetPointsize .restype = ctypes .c_double
393+
394+ library .MagickSetPointsize .argtypes = [ctypes .c_void_p ,
395+ ctypes .c_double ]
396+ library .MagickSetPointsize .restype = ctypes .c_int
397+
398+ library .MagickGetGravity .argtypes = [ctypes .c_void_p ]
399+ library .MagickGetGravity .restype = ctypes .c_int
400+
401+ library .MagickSetGravity .argtypes = [ctypes .c_void_p ,
402+ ctypes .c_int ]
403+ library .MagickSetGravity .restype = ctypes .c_int
404+
405+ library .MagickSetLastIterator .argtypes = [ctypes .c_void_p ]
406+
407+ library .MagickGetBackgroundColor .argtypes = [ctypes .c_void_p ]
408+ library .MagickGetBackgroundColor .restype = ctypes .c_void_p
409+
410+ library .MagickSetBackgroundColor .argtypes = [ctypes .c_void_p ,
411+ ctypes .c_void_p ]
412+ library .MagickSetBackgroundColor .restype = ctypes .c_int
413+
414+ library .MagickGetOption .argtypes = [ctypes .c_void_p ,
415+ ctypes .c_char_p ]
416+ library .MagickGetOption .restype = ctypes .c_char_p
417+
418+ library .MagickSetOption .argtypes = [ctypes .c_void_p ,
419+ ctypes .c_char_p ,
420+ ctypes .c_char_p ]
421+ library .MagickSetOption .restype = ctypes .c_int
422+
423+ library .MagickGetAntialias .argtypes = [ctypes .c_void_p ]
424+ library .MagickGetAntialias .restype = ctypes .c_int
425+
426+ library .MagickSetAntialias .argtypes = [ctypes .c_void_p ,
427+ ctypes .c_int ]
428+ library .MagickSetAntialias .restype = ctypes .c_int
429+
375430 # These functions are const so it's okay for them to be c_char_p
376431 libmagick .GetMagickVersion .argtypes = [ctypes .POINTER (ctypes .c_size_t )]
377432 libmagick .GetMagickVersion .restype = ctypes .c_char_p
378433
379434 libmagick .GetMagickReleaseDate .argtypes = []
380435 libmagick .GetMagickReleaseDate .restype = ctypes .c_char_p
436+
437+ library .NewDrawingWand .restype = ctypes .c_void_p
438+
439+ library .CloneDrawingWand .argtypes = [ctypes .c_void_p ]
440+ library .CloneDrawingWand .restype = ctypes .c_void_p
441+
442+ library .DestroyDrawingWand .argtypes = [ctypes .c_void_p ]
443+ library .DestroyDrawingWand .restype = ctypes .c_void_p
444+
445+ library .IsDrawingWand .argtypes = [ctypes .c_void_p ]
446+ library .IsDrawingWand .restype = ctypes .c_int
447+
448+ library .DrawGetException .argtypes = [ctypes .c_void_p ,
449+ ctypes .POINTER (ctypes .c_int )]
450+ library .DrawGetException .restype = ctypes .c_char_p
451+
452+ library .DrawClearException .argtypes = [ctypes .c_void_p ]
453+ library .DrawClearException .restype = ctypes .c_int
454+
455+ library .DrawSetFont .argtypes = [ctypes .c_void_p ,
456+ ctypes .c_char_p ]
457+
458+ library .DrawSetFontSize .argtypes = [ctypes .c_void_p ,
459+ ctypes .c_double ]
460+
461+ library .DrawSetFillColor .argtypes = [ctypes .c_void_p ,
462+ ctypes .c_void_p ]
463+
464+ library .DrawSetTextAlignment .argtypes = [ctypes .c_void_p ,
465+ ctypes .c_int ]
466+
467+ library .DrawSetTextAntialias .argtypes = [ctypes .c_void_p ,
468+ ctypes .c_int ]
469+
470+ library .DrawSetTextDecoration .argtypes = [ctypes .c_void_p ,
471+ ctypes .c_int ]
472+
473+ library .DrawSetTextEncoding .argtypes = [ctypes .c_void_p ,
474+ ctypes .c_char_p ]
475+
476+ library .DrawSetTextInterlineSpacing .argtypes = [ctypes .c_void_p ,
477+ ctypes .c_double ]
478+
479+ library .DrawSetTextInterwordSpacing .argtypes = [ctypes .c_void_p ,
480+ ctypes .c_double ]
481+
482+ library .DrawSetTextKerning .argtypes = [ctypes .c_void_p ,
483+ ctypes .c_double ]
484+
485+ library .DrawSetTextUnderColor .argtypes = [ctypes .c_void_p ,
486+ ctypes .c_void_p ]
487+
488+ library .DrawGetFillColor .argtypes = [ctypes .c_void_p ,
489+ ctypes .c_void_p ]
490+
491+ library .DrawGetFont .argtypes = [ctypes .c_void_p ]
492+ library .DrawGetFont .restype = ctypes .c_char_p
493+
494+ library .DrawGetFontSize .argtypes = [ctypes .c_void_p ]
495+ library .DrawGetFontSize .restype = ctypes .c_double
496+
497+ library .DrawGetTextAlignment .argtypes = [ctypes .c_void_p ]
498+ library .DrawGetTextAlignment .restype = ctypes .c_int
499+
500+ library .DrawGetTextAntialias .argtypes = [ctypes .c_void_p ]
501+ library .DrawGetTextAntialias .restype = ctypes .c_int
502+
503+ library .DrawGetTextDecoration .argtypes = [ctypes .c_void_p ]
504+ library .DrawGetTextDecoration .restype = ctypes .c_int
505+
506+ library .DrawGetTextEncoding .argtypes = [ctypes .c_void_p ]
507+ library .DrawGetTextEncoding .restype = ctypes .c_char_p
508+
509+ library .DrawGetTextInterlineSpacing .argtypes = [ctypes .c_void_p ]
510+ library .DrawGetTextInterlineSpacing .restype = ctypes .c_double
511+
512+ library .DrawGetTextInterwordSpacing .argtypes = [ctypes .c_void_p ]
513+ library .DrawGetTextInterwordSpacing .restype = ctypes .c_double
514+
515+ library .DrawGetTextKerning .argtypes = [ctypes .c_void_p ]
516+ library .DrawGetTextKerning .restype = ctypes .c_double
517+
518+ library .DrawGetTextUnderColor .argtypes = [ctypes .c_void_p ,
519+ ctypes .c_void_p ]
520+
521+ library .DrawSetGravity .argtypes = [ctypes .c_void_p ,
522+ ctypes .c_int ]
523+
524+ library .DrawGetGravity .argtypes = [ctypes .c_void_p ]
525+ library .DrawGetGravity .restype = ctypes .c_int
526+
527+ library .MagickAnnotateImage .argtypes = [ctypes .c_void_p ,
528+ ctypes .c_void_p ,
529+ ctypes .c_double ,
530+ ctypes .c_double ,
531+ ctypes .c_double ,
532+ ctypes .c_char_p ]
533+ library .MagickAnnotateImage .restype = ctypes .c_int
534+
535+ library .ClearDrawingWand .argtypes = [ctypes .c_void_p ]
536+
537+ library .MagickDrawImage .argtypes = [ctypes .c_void_p ,
538+ ctypes .c_void_p ]
539+ library .MagickDrawImage .restype = ctypes .c_int
540+
541+ library .DrawLine .argtypes = [ctypes .c_void_p ,
542+ ctypes .c_double ,
543+ ctypes .c_double ,
544+ ctypes .c_double ,
545+ ctypes .c_double ]
546+
547+ library .DrawAnnotation .argtypes = [ctypes .c_void_p ,
548+ ctypes .c_double ,
549+ ctypes .c_double ,
550+ ctypes .POINTER (ctypes .c_ubyte )]
551+
552+ library .MagickQueryFontMetrics .argtypes = [ctypes .c_void_p ,
553+ ctypes .c_void_p ,
554+ ctypes .c_char_p ]
555+ library .MagickQueryFontMetrics .restype = ctypes .POINTER (ctypes .c_double )
556+
557+ library .MagickQueryMultilineFontMetrics .argtypes = [ctypes .c_void_p ,
558+ ctypes .c_void_p ,
559+ ctypes .c_char_p ]
560+ library .MagickQueryMultilineFontMetrics .restype = ctypes .POINTER (
561+ ctypes .c_double
562+ )
381563except AttributeError :
382564 raise ImportError ('MagickWand shared library not found or incompatible' )
383565
0 commit comments