/
BirdLeon
/
ROBLOX2016
Обзор
Документация
Войти
/
BirdLeon
/
ROBLOX2016
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
Library/SDK/Include/GdiPlusColorMatrix.h
87 строк
2 KB
PatoFlamejanteTV
full source code
19 дек 2024, 19:11
19 дек 2024, 19:11
05db15d
Код
Авторство
О чём код?
/**************************************************************************\ * * Copyright (c) 1998-2001, Microsoft Corp. All Rights Reserved. * * Module Name: * * GdiplusColorMatrix.h * * Abstract: * * GDI+ Color Matrix object, used with Graphics.DrawImage * \**************************************************************************/ #ifndef _GDIPLUSCOLORMATRIX_H #define _GDIPLUSCOLORMATRIX_H #if (GDIPVER >= 0x0110) //---------------------------------------------------------------------------- // Color channel look up table (LUT) //---------------------------------------------------------------------------- typedef BYTE ColorChannelLUT[256]; //---------------------------------------------------------------------------- // Per-channel Histogram for 8bpp images. //---------------------------------------------------------------------------- enum HistogramFormat { HistogramFormatARGB, HistogramFormatPARGB, HistogramFormatRGB, HistogramFormatGray, HistogramFormatB, HistogramFormatG, HistogramFormatR, HistogramFormatA }; #endif //(GDIPVER >= 0x0110) //---------------------------------------------------------------------------- // Color matrix //---------------------------------------------------------------------------- struct ColorMatrix { REAL m[5][5]; }; //---------------------------------------------------------------------------- // Color Matrix flags //---------------------------------------------------------------------------- enum ColorMatrixFlags { ColorMatrixFlagsDefault = 0, ColorMatrixFlagsSkipGrays = 1, ColorMatrixFlagsAltGray = 2 }; //---------------------------------------------------------------------------- // Color Adjust Type //---------------------------------------------------------------------------- enum ColorAdjustType { ColorAdjustTypeDefault, ColorAdjustTypeBitmap, ColorAdjustTypeBrush, ColorAdjustTypePen, ColorAdjustTypeText, ColorAdjustTypeCount, ColorAdjustTypeAny // Reserved }; //---------------------------------------------------------------------------- // Color Map //---------------------------------------------------------------------------- struct ColorMap { Color oldColor; Color newColor; }; #endif