#include <bevfill.h>
Inheritance diagram for CBevelFillPoint:
Public Member Functions | |
COLORREF | CalcPixelValue (BYTE value, double Pos, INT32 Contrast) |
Do a flat fill. | |
Private Member Functions | |
CC_DECLARE_DYNAMIC (CBevelFillPoint) |
Definition at line 252 of file bevfill.h.
|
Do a flat fill.
Implements CBevelFill. Definition at line 467 of file bevfill.cpp. 00468 { 00469 double RValue = value; 00470 double GValue = value; 00471 double BValue = value; 00472 double AValue = value; 00473 00474 double kValue = value; 00475 00476 if (Pos < 0.5) 00477 { 00478 // do nothing 00479 } 00480 else 00481 { 00482 kValue = 255.0 - kValue; 00483 } 00484 00485 RValue = kValue; 00486 GValue = kValue; 00487 BValue = kValue; 00488 AValue = kValue; 00489 00490 BYTE RByte = (BYTE)RValue; 00491 BYTE GByte = (BYTE)GValue; 00492 BYTE BByte = (BYTE)BValue; 00493 BYTE AByte = (BYTE)AValue; 00494 00495 return RByte | (GByte << 8) | (BByte << 16) | (AByte << 24); 00496 }
|
|
|