# pixel.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   MagickCore image constitute methods.
    00017 */
    00018 #ifndef _MAGICKCORE_PIXEL_H
    00019 #define _MAGICKCORE_PIXEL_H
    00020
    00021 #if defined(__cplusplus) || defined(c_plusplus)
    00022 extern "C" {
    00023 #endif
    00024
    00025 #include <magick/colorspace.h>
    00026 #include <magick/constitute.h>
    00027
    00028 typedef struct _LongPixelPacket
    00029 {
    00030   unsigned long
    00031     red,
    00032     green,
    00033     blue,
    00034     opacity,
    00035     index;
    00036 } LongPixelPacket;
    00037
    00038 typedef struct _MagickPixelPacket
    00039 {
    00040   ClassType
    00041     storage_class;
    00042
    00043   ColorspaceType
    00044     colorspace;
    00045
    00046   MagickBooleanType
    00047     matte;
    00048
    00049   double
    00050     fuzz;
    00051
    00052   unsigned long
    00053     depth;
    00054
    00055   MagickRealType
    00056     red,
    00057     green,
    00058     blue,
    00059     opacity,
    00060     index;
    00061 } MagickPixelPacket;
    00062
    00063 typedef Quantum IndexPacket;
    00064
    00065 typedef struct _PixelPacket
    00066 {
    00067 #if defined(MAGICKCORE_WORDS_BIGENDIAN)
    00068   Quantum
    00069     red,
    00070     green,
    00071     blue,
    00072     opacity;
    00073 #else
    00074   Quantum
    00075     blue,
    00076     green,
    00077     red,
    00078     opacity;
    00079 #endif
    00080 } PixelPacket;
    00081
    00082 extern MagickExport MagickBooleanType
    00083   ExportImagePixels(const Image *,const long,const long,const unsigned long,
    00084     const unsigned long,const char *,const StorageType,void *,ExceptionInfo *),
    00085   ImportImagePixels(Image *,const long,const long,const unsigned long,
    00086     const unsigned long,const char *,const StorageType,const void *);
    00087
    00088 extern MagickExport void
    00089   GetMagickPixelPacket(const Image *,MagickPixelPacket *);
    00090
    00091 #if defined(__cplusplus) || defined(c_plusplus)
    00092 }
    00093 #endif
    00094
    00095 #endif