gdiplus/gdipluscolormatrix.h@3:0c3bcea5b4d0, 2012-03-05 (annotated)
- Committer:
- sca8er
- Date:
- Mon Mar 05 04:56:58 2012 +0000
- Revision:
- 3:0c3bcea5b4d0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sca8er | 3:0c3bcea5b4d0 | 1 | /* |
sca8er | 3:0c3bcea5b4d0 | 2 | * gdipluscolormatrix.h |
sca8er | 3:0c3bcea5b4d0 | 3 | * |
sca8er | 3:0c3bcea5b4d0 | 4 | * GDI+ color mappings |
sca8er | 3:0c3bcea5b4d0 | 5 | * |
sca8er | 3:0c3bcea5b4d0 | 6 | * This file is part of the w32api package. |
sca8er | 3:0c3bcea5b4d0 | 7 | * |
sca8er | 3:0c3bcea5b4d0 | 8 | * Contributors: |
sca8er | 3:0c3bcea5b4d0 | 9 | * Created by Markus Koenig <markus@stber-koenig.de> |
sca8er | 3:0c3bcea5b4d0 | 10 | * |
sca8er | 3:0c3bcea5b4d0 | 11 | * THIS SOFTWARE IS NOT COPYRIGHTED |
sca8er | 3:0c3bcea5b4d0 | 12 | * |
sca8er | 3:0c3bcea5b4d0 | 13 | * This source code is offered for use in the public domain. You may |
sca8er | 3:0c3bcea5b4d0 | 14 | * use, modify or distribute it freely. |
sca8er | 3:0c3bcea5b4d0 | 15 | * |
sca8er | 3:0c3bcea5b4d0 | 16 | * This code is distributed in the hope that it will be useful but |
sca8er | 3:0c3bcea5b4d0 | 17 | * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY |
sca8er | 3:0c3bcea5b4d0 | 18 | * DISCLAIMED. This includes but is not limited to warranties of |
sca8er | 3:0c3bcea5b4d0 | 19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
sca8er | 3:0c3bcea5b4d0 | 20 | * |
sca8er | 3:0c3bcea5b4d0 | 21 | */ |
sca8er | 3:0c3bcea5b4d0 | 22 | |
sca8er | 3:0c3bcea5b4d0 | 23 | #ifndef __GDIPLUS_COLORMATRIX_H |
sca8er | 3:0c3bcea5b4d0 | 24 | #define __GDIPLUS_COLORMATRIX_H |
sca8er | 3:0c3bcea5b4d0 | 25 | #if __GNUC__ >=3 |
sca8er | 3:0c3bcea5b4d0 | 26 | #pragma GCC system_header |
sca8er | 3:0c3bcea5b4d0 | 27 | #endif |
sca8er | 3:0c3bcea5b4d0 | 28 | |
sca8er | 3:0c3bcea5b4d0 | 29 | typedef enum ColorAdjustType { |
sca8er | 3:0c3bcea5b4d0 | 30 | ColorAdjustTypeDefault = 0, |
sca8er | 3:0c3bcea5b4d0 | 31 | ColorAdjustTypeBitmap = 1, |
sca8er | 3:0c3bcea5b4d0 | 32 | ColorAdjustTypeBrush = 2, |
sca8er | 3:0c3bcea5b4d0 | 33 | ColorAdjustTypePen = 3, |
sca8er | 3:0c3bcea5b4d0 | 34 | ColorAdjustTypeText = 4, |
sca8er | 3:0c3bcea5b4d0 | 35 | ColorAdjustTypeCount = 5, |
sca8er | 3:0c3bcea5b4d0 | 36 | ColorAdjustTypeAny = 6 |
sca8er | 3:0c3bcea5b4d0 | 37 | } ColorAdjustType; |
sca8er | 3:0c3bcea5b4d0 | 38 | |
sca8er | 3:0c3bcea5b4d0 | 39 | typedef enum ColorMatrixFlags { |
sca8er | 3:0c3bcea5b4d0 | 40 | ColorMatrixFlagsDefault = 0, |
sca8er | 3:0c3bcea5b4d0 | 41 | ColorMatrixFlagsSkipGrays = 1, |
sca8er | 3:0c3bcea5b4d0 | 42 | ColorMatrixFlagsAltGray = 2 |
sca8er | 3:0c3bcea5b4d0 | 43 | } ColorMatrixFlags; |
sca8er | 3:0c3bcea5b4d0 | 44 | |
sca8er | 3:0c3bcea5b4d0 | 45 | typedef enum HistogramFormat { |
sca8er | 3:0c3bcea5b4d0 | 46 | HistogramFormatARGB = 0, |
sca8er | 3:0c3bcea5b4d0 | 47 | HistogramFormatPARGB = 1, |
sca8er | 3:0c3bcea5b4d0 | 48 | HistogramFormatRGB = 2, |
sca8er | 3:0c3bcea5b4d0 | 49 | HistogramFormatGray = 3, |
sca8er | 3:0c3bcea5b4d0 | 50 | HistogramFormatB = 4, |
sca8er | 3:0c3bcea5b4d0 | 51 | HistogramFormatG = 5, |
sca8er | 3:0c3bcea5b4d0 | 52 | HistogramFormatR = 6, |
sca8er | 3:0c3bcea5b4d0 | 53 | HistogramFormatA = 7 |
sca8er | 3:0c3bcea5b4d0 | 54 | } HistogramFormat; |
sca8er | 3:0c3bcea5b4d0 | 55 | |
sca8er | 3:0c3bcea5b4d0 | 56 | typedef struct ColorMap { |
sca8er | 3:0c3bcea5b4d0 | 57 | Color oldColor; |
sca8er | 3:0c3bcea5b4d0 | 58 | Color newColor; |
sca8er | 3:0c3bcea5b4d0 | 59 | } ColorMap; |
sca8er | 3:0c3bcea5b4d0 | 60 | |
sca8er | 3:0c3bcea5b4d0 | 61 | typedef struct ColorMatrix { |
sca8er | 3:0c3bcea5b4d0 | 62 | REAL m[5][5]; |
sca8er | 3:0c3bcea5b4d0 | 63 | } ColorMatrix; |
sca8er | 3:0c3bcea5b4d0 | 64 | |
sca8er | 3:0c3bcea5b4d0 | 65 | typedef BYTE ColorChannelLUT[256]; |
sca8er | 3:0c3bcea5b4d0 | 66 | |
sca8er | 3:0c3bcea5b4d0 | 67 | #endif /* __GDIPLUS_COLORMATRIX_H */ |