# pixel-wand.h

Go to the documentation of this file.

    00001 /*
    00002   Copyright 1999-2010 ImageMagick Studio LLC, a non-profit organization
    00003   dedicated to making software imaging solutions freely available.
    00004
    00005   You may not use this file except in compliance with the License.
    00006   obtain a copy of the License at
    00007
    00008     http://www.imagemagick.org/script/license.php
    00009
    00010   Unless required by applicable law or agreed to in writing, software
    00011   distributed under the License is distributed on an "AS IS" BASIS,
    00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00013   See the License for the specific language governing permissions and
    00014   limitations under the License.
    00015
    00016   MagickWand pixel wand methods.
    00017 */
    00018 #ifndef _MAGICKWAND_PIXEL_WAND_H
    00019 #define _MAGICKWAND_PIXEL_WAND_H
    00020
    00021 #if defined(__cplusplus) || defined(c_plusplus)
    00022 extern "C" {
    00023 #endif
    00024
    00025 typedef struct _PixelWand
    00026   PixelWand;
    00027
    00028 extern WandExport char
    00029   *PixelGetColorAsNormalizedString(const PixelWand *),
    00030   *PixelGetColorAsString(const PixelWand *),
    00031   *PixelGetException(const PixelWand *,ExceptionType *);
    00032
    00033 extern WandExport double
    00034   PixelGetAlpha(const PixelWand *),
    00035   PixelGetBlack(const PixelWand *),
    00036   PixelGetBlue(const PixelWand *),
    00037   PixelGetCyan(const PixelWand *),
    00038   PixelGetFuzz(const PixelWand *),
    00039   PixelGetGreen(const PixelWand *),
    00040   PixelGetMagenta(const PixelWand *),
    00041   PixelGetOpacity(const PixelWand *),
    00042   PixelGetRed(const PixelWand *),
    00043   PixelGetYellow(const PixelWand *);
    00044
    00045 extern WandExport ExceptionType
    00046   PixelGetExceptionType(const PixelWand *);
    00047
    00048 extern WandExport IndexPacket
    00049   PixelGetIndex(const PixelWand *);
    00050
    00051 extern WandExport MagickBooleanType
    00052   IsPixelWand(const PixelWand *),
    00053   IsPixelWandSimilar(PixelWand *,PixelWand *,const double),
    00054   PixelClearException(PixelWand *),
    00055   PixelSetColor(PixelWand *,const char *);
    00056
    00057 extern WandExport PixelWand
    00058   *ClonePixelWand(const PixelWand *),
    00059   **ClonePixelWands(const PixelWand **,const unsigned long),
    00060   *DestroyPixelWand(PixelWand *),
    00061   **DestroyPixelWands(PixelWand **,const unsigned long),
    00062   *NewPixelWand(void),
    00063   **NewPixelWands(const unsigned long);
    00064
    00065 extern WandExport Quantum
    00066   PixelGetAlphaQuantum(const PixelWand *),
    00067   PixelGetBlackQuantum(const PixelWand *),
    00068   PixelGetBlueQuantum(const PixelWand *),
    00069   PixelGetCyanQuantum(const PixelWand *),
    00070   PixelGetGreenQuantum(const PixelWand *),
    00071   PixelGetMagentaQuantum(const PixelWand *),
    00072   PixelGetOpacityQuantum(const PixelWand *),
    00073   PixelGetRedQuantum(const PixelWand *),
    00074   PixelGetYellowQuantum(const PixelWand *);
    00075
    00076 extern WandExport unsigned long
    00077   PixelGetColorCount(const PixelWand *);
    00078
    00079 extern WandExport void
    00080   ClearPixelWand(PixelWand *),
    00081   PixelGetHSL(const PixelWand *,double *,double *,double *),
    00082   PixelGetMagickColor(const PixelWand *,MagickPixelPacket *),
    00083   PixelGetQuantumColor(const PixelWand *,PixelPacket *),
    00084   PixelSetAlpha(PixelWand *,const double),
    00085   PixelSetAlphaQuantum(PixelWand *,const Quantum),
    00086   PixelSetBlack(PixelWand *,const double),
    00087   PixelSetBlackQuantum(PixelWand *,const Quantum),
    00088   PixelSetBlue(PixelWand *,const double),
    00089   PixelSetBlueQuantum(PixelWand *,const Quantum),
    00090   PixelSetColorFromWand(PixelWand *,const PixelWand *),
    00091   PixelSetColorCount(PixelWand *,const unsigned long),
    00092   PixelSetCyan(PixelWand *,const double),
    00093   PixelSetCyanQuantum(PixelWand *,const Quantum),
    00094   PixelSetFuzz(PixelWand *,const double),
    00095   PixelSetGreen(PixelWand *,const double),
    00096   PixelSetGreenQuantum(PixelWand *,const Quantum),
    00097   PixelSetHSL(PixelWand *,const double,const double,const double),
    00098   PixelSetIndex(PixelWand *,const IndexPacket),
    00099   PixelSetMagenta(PixelWand *,const double),
    00100   PixelSetMagentaQuantum(PixelWand *,const Quantum),
    00101   PixelSetMagickColor(PixelWand *,const MagickPixelPacket *),
    00102   PixelSetOpacity(PixelWand *,const double),
    00103   PixelSetOpacityQuantum(PixelWand *,const Quantum),
    00104   PixelSetQuantumColor(PixelWand *,const PixelPacket *),
    00105   PixelSetRed(PixelWand *,const double),
    00106   PixelSetRedQuantum(PixelWand *,const Quantum),
    00107   PixelSetYellow(PixelWand *,const double),
    00108   PixelSetYellowQuantum(PixelWand *,const Quantum);
    00109
    00110 #if defined(__cplusplus) || defined(c_plusplus)
    00111 }
    00112 #endif
    00113
    00114 #endif