"Fossies" - the Fresh Open Source Software Archive

Member "libgdiplus-6.0.2/src/imageattributes-private.h" (31 Jul 2019, 2853 Bytes) of package /linux/misc/mono-sources/libgdiplus/libgdiplus-6.0.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "imageattributes-private.h": 5.6.1_vs_6.0.2.

    1 /*
    2  * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
    3  * and associated documentation files (the "Software"), to deal in the Software without restriction,
    4  * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
    5  * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
    6  * subject to the following conditions:
    7  *
    8  * The above copyright notice and this permission notice shall be included in all copies or substantial
    9  * portions of the Software.
   10  *
   11  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT
   12  * NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   13  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
   14  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
   15  * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   16  *
   17  * Authors:
   18  *      Alexandre Pigolkine (pigolkine@gmx.de)
   19  *      Duncan Mak (duncan@ximian.com)
   20  *      Miguel de Icaza (miguel@ximian.com)
   21  *      Ravindra (rkumar@novell.com)
   22  *      Sanjay Gupta (gsanjay@novell.com)
   23  *  Vladimir Vukicevic (vladimir@pobox.com)
   24  *  Geoff Norton (gnorton@customerdna.com)
   25  *      Jonathan Gilbert (logic@deltaq.org)
   26  *  Sebastien Pouliot  <sebastien@ximian.com>
   27  *
   28  * Copyright (C) 2003-2007 Novell, Inc (http://www.novell.com)
   29  */
   30 
   31 /*
   32  * NOTE: This is a private header files and everything is subject to changes.
   33  */
   34 
   35 #ifndef __IMAGEATTRIBUTES_PRIVATE_H__
   36 #define __IMAGEATTRIBUTES_PRIVATE_H__
   37 
   38 #include "gdiplus-private.h"
   39 
   40 typedef enum {
   41     ImageAttributeFlagsNoOp = 0x01,
   42     ImageAttributeFlagsColorMatrixEnabled = 0x02,
   43     ImageAttributeFlagsThresholdEnabled = 0x04,
   44     ImageAttributeFlagsGammaEnabled = 0x08,
   45     ImageAttributeFlagsColorKeysEnabled = 0x10,
   46     ImageAttributeFlagsColorRemapTableEnabled = 0x20,
   47     ImageAttributeFlagsOutputChannelEnabled = 0x40,
   48     ImageAttributeFlagsGrayMatrixEnabled = 0x80,
   49     ImageAttributeFlagsOutputChannelColorProfileEnabled = 0x100
   50 } ImageAttributeFlags;
   51 
   52 typedef struct {
   53     ImageAttributeFlags flags;
   54     ColorMap *colormap;
   55     int colormap_elem;
   56     float gamma_correction;
   57     ARGB key_colorlow;
   58     ARGB key_colorhigh;
   59     ColorMatrix *colormatrix;
   60     ColorMatrix *graymatrix;
   61     ColorMatrixFlags colormatrix_flags;
   62     float threshold; // Not implemented.
   63     ColorChannelFlags outputchannel_flags; // Not implemented.
   64     char *colorprofile_filename; // Not implemented.
   65 } GpImageAttribute;
   66 
   67 typedef struct _ImageAttributes {
   68     GpImageAttribute def;
   69     GpImageAttribute bitmap;
   70     GpImageAttribute brush;
   71     GpImageAttribute pen;
   72     GpImageAttribute text;
   73     /* Globals */
   74     WrapMode wrapmode;
   75     ARGB color;
   76 } ImageAttributes;
   77 
   78 #include "imageattributes.h"
   79 
   80 #endif