
    lh                     \    d Z ddlZddlZddlmZmZmZmZmZm	Z	m
Z
mZmZmZmZmZ dZd ZdS )z:mod:`wand.cdefs.pixel_wand` --- Pixel-Wand definitions
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 0.5.0
    N)CDLLPOINTERc_char_pc_doublec_floatc_intc_longdoublec_size_tc_ubytec_uintc_ushortc_void_p)loadc                    t          | t                    st          t          |           dz             t          |t          j                  st          d          |dvrt          d          |dk     }|dk    }t          j                    dv rt          }nt          }|dk    r|r|nt          }n6|dk    r|r|nt          }n$|d	k    r|rt          nt          }n|d
k    rt          }t          g| j        _        t          g| j        _        t          | j        _        t          g| j        _        t          | j        _        t)          t                    t*          g| j        _        t)          t                    | j        _        t          g| j        _        t          t          t          g| j        _        g | j        _        t          | j        _        t          g| j        _        t6          | j        _        t          g| j        _        t          | j        _        t          g| j        _        || j        _        t          g| j        _        t          | j        _        t          g| j        _        || j        _        t          g| j         _        t          | j         _        t          g| j!        _        || j!        _        t          g| j"        _        t          | j"        _        t          g| j#        _        t          | j#        _        t          g| j$        _        t*          | j$        _        t          g| j%        _        t          | j%        _        t          g| j&        _        || j&        _        t          t)          t6                    g| j'        _        t          | j'        _        t          g| j(        _        t6          | j(        _        t          g| j)        _        t          | j)        _        t          g| j*        _        t          | j*        _        t          g| j+        _        || j+        _        t          t)          t                    t)          t                    t)          t                    g| j,        _        t          g| j-        _        || j-        _        t          g| j.        _        t          | j.        _        t          g| j/        _        || j/        _        t          t          g| j0        _        |r#t          g| j1        _        t          | j1        _        t          g| j2        _        t          | j2        _        t          g| j3        _        || j3        _        t          g| j4        _        t          | j4        _        t          g| j5        _        || j5        _        t          t          g| j6        _        t          |g| j7        _        t          t          g| j8        _        t          |g| j9        _        t          t          g| j:        _        t          |g| j;        _        t          tx          g| j=        _        t6          | j=        _        t          t*          g| j>        _        t          t          g| j?        _        t          |g| j@        _        t          t          g| jA        _        t          t          g| jB        _        t          |g| jC        _        t          t          t          t          g| jD        _        t          |g| jE        _        t          t          g| jF        _        t          |g| jG        _        |rt          t          g| jH        _        nd| _H        |rt          t          g| jI        _        nd| _I        t          t          g| jJ        _        t          |g| jK        _        t          t          g| jL        _        t          |g| jM        _        |rt          t          g| jH        _        d| _I        |r!d| _H        t          t          g| jI        _        dS dS )a  Define Pixel Wand methods. The ImageMagick version is given as
    a second argument for comparison. This will quick to determine which
    methods are available from the library, and can be implemented as::

        if IM_VERSION < 0x700:
            # ... do ImageMagick-6 methods ...
        else
            # ... do ImageMagick-7 methods ...

    .. seealso::

        #include "wand/pixel-wand.h"
        // Or
        #include "MagickWand/pixel-wand.h"

    Mapping Pixel methods also requires the wand library to evaluate
    what "Quantum" is to ImageMagick. We must query the library
    to identify if HDRI is enabled, and what the quantum depth is.

    .. seealso::

        MagickCore/magick-type.h

    :param lib: the loaded ``MagickWand`` library.
    :type lib: :class:`ctypes.CDLL`
    :param IM_VERSION: the ImageMagick version number (i.e. 0x0689).
    :type IM_VERSION: :class:`numbers.Integral`
    :param IM_QUANTUM_DEPTH: the ImageMagick Quantum Depth
                             (must be 8, 16, 32, or 64).
    :type IM_QUANTUM_DEPTH: :class:`numbers.Integral`
    :param IM_HDRI: if ImageMagick was compiled with HDRI support.
    :type IM_HDRI: :class:`bool`

    .. versionadded:: 0.5.0

    z# is not an instanced of ctypes.CDLLz#Expecting MagickCore version number)          A   z-QUANTUM_DEPTH must be one of 8, 16, 32, or 64i   )s390s390xi686r   r   r   @   N)N
isinstancer   AttributeErrorreprnumbersIntegralplatformmachiner   r   r   r   r   r	   r   ClearPixelWandargtypesClonePixelWandrestypeDestroyPixelWandr   r
   DestroyPixelWandsIsPixelWandIsPixelWandSimilarNewPixelWandPixelClearExceptionr   PixelGetAlphaPixelGetAlphaQuantumPixelGetBlackPixelGetBlackQuantumPixelGetBluePixelGetBlueQuantumPixelGetColorAsNormalizedStringPixelGetColorAsStringPixelGetColorCountPixelGetCyanPixelGetCyanQuantumPixelGetExceptionPixelGetExceptionTypePixelGetFuzzPixelGetGreenPixelGetGreenQuantumPixelGetHSLPixelGetIndexPixelGetMagentaPixelGetMagentaQuantumPixelGetMagickColorPixelGetPixelPixelGetRedPixelGetRedQuantumPixelGetYellowPixelGetYellowQuantumPixelSetAlphaPixelSetAlphaQuantumPixelSetBlackPixelSetBlackQuantumPixelSetBluePixelSetBlueQuantumr   PixelSetColorPixelSetColorCountPixelSetCyanPixelSetCyanQuantumPixelSetFuzzPixelSetGreenPixelSetGreenQuantumPixelSetHSLPixelSetIndexPixelSetMagentaPixelSetMagentaQuantumPixelSetMagickColorPixelSetPixelColorPixelSetRedPixelSetRedQuantumPixelSetYellowPixelSetYellowQuantum)lib
IM_VERSIONIM_QUANTUM_DEPTHIM_HDRIis_im_6is_im_7	FloatTypeQuantumTypes           X/var/www/html/research.buxo.ca/env/lib/python3.11/site-packages/wand/cdefs/pixel_wand.pyr   r      sA   J c4   PT#YY)NNOOOj'"233 DBCCC..LMMM5 GE!G 666			1#*7ii	R		#*8ii	R		")5hhv	R		"#+*C#+*C!)C%-JC!#+C &-h&7&7%BC"$+H$5$5C! (zCO'/8&DC# "C'C(0zC$&+C#"*C (C)1
C%'2C$"*C (C)1
C%'2C$!)
C'C(0zC$&1C#4<:C'02:C'/*2C&(0C%'/jC#%-C"!)
C'C(0zC$&1C#&.%?C"$,C!*2C&(-C%!)
C'C"*C (C)1
C%'2C$ ( ' 1 1 ' 1 1 ' 1 1 3CO #+C +C$,:C "*C+3*C')4C&(0(';C$ -&.Z"$,! (zCO&CO'/jC#%0C"#+*C!)C*2C&(3C%"*H!5C)1;(?C%"*H!5C)1;(?C%!)8 4C(0+'>C$"*H!5C %C'/&:C#!)8 4C(0+'>C$!)8 4C"*H!5C)1;(?C% ((HhGCO"*K!8C$,h#7C +3[*AC' ',4h+?(("& &+3X*>''!% ((3CO'/&=C##+X"6C*2K)@C& &,4h+?(!% ?"&+3X*>'''? ?    )__doc__r   r   ctypesr   r   r   r   r   r   r	   r
   r   r   r   r   __all__r    rd   rc   <module>ri      s    
                              c? c? c? c? c?rd   