Embed:
(wiki syntax)
Show/hide line numbers
gdipluscolormatrix.h
00001 /* 00002 * gdipluscolormatrix.h 00003 * 00004 * GDI+ color mappings 00005 * 00006 * This file is part of the w32api package. 00007 * 00008 * Contributors: 00009 * Created by Markus Koenig <markus@stber-koenig.de> 00010 * 00011 * THIS SOFTWARE IS NOT COPYRIGHTED 00012 * 00013 * This source code is offered for use in the public domain. You may 00014 * use, modify or distribute it freely. 00015 * 00016 * This code is distributed in the hope that it will be useful but 00017 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY 00018 * DISCLAIMED. This includes but is not limited to warranties of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00020 * 00021 */ 00022 00023 #ifndef __GDIPLUS_COLORMATRIX_H 00024 #define __GDIPLUS_COLORMATRIX_H 00025 #if __GNUC__ >=3 00026 #pragma GCC system_header 00027 #endif 00028 00029 typedef enum ColorAdjustType { 00030 ColorAdjustTypeDefault = 0, 00031 ColorAdjustTypeBitmap = 1, 00032 ColorAdjustTypeBrush = 2, 00033 ColorAdjustTypePen = 3, 00034 ColorAdjustTypeText = 4, 00035 ColorAdjustTypeCount = 5, 00036 ColorAdjustTypeAny = 6 00037 } ColorAdjustType; 00038 00039 typedef enum ColorMatrixFlags { 00040 ColorMatrixFlagsDefault = 0, 00041 ColorMatrixFlagsSkipGrays = 1, 00042 ColorMatrixFlagsAltGray = 2 00043 } ColorMatrixFlags; 00044 00045 typedef enum HistogramFormat { 00046 HistogramFormatARGB = 0, 00047 HistogramFormatPARGB = 1, 00048 HistogramFormatRGB = 2, 00049 HistogramFormatGray = 3, 00050 HistogramFormatB = 4, 00051 HistogramFormatG = 5, 00052 HistogramFormatR = 6, 00053 HistogramFormatA = 7 00054 } HistogramFormat; 00055 00056 typedef struct ColorMap { 00057 Color oldColor; 00058 Color newColor; 00059 } ColorMap; 00060 00061 typedef struct ColorMatrix { 00062 REAL m[5][5]; 00063 } ColorMatrix; 00064 00065 typedef BYTE ColorChannelLUT[256]; 00066 00067 #endif /* __GDIPLUS_COLORMATRIX_H */
Generated on Tue Jul 12 2022 19:59:54 by
1.7.2