CBevelFillPoint Class Reference

Do a pointy fill. More...

#include <bevfill.h>

Inheritance diagram for CBevelFillPoint:

CBevelFill CCObject SimpleCCObject List of all members.

Public Member Functions

COLORREF CalcPixelValue (BYTE value, double Pos, INT32 Contrast)
 Do a flat fill.

Private Member Functions

 CC_DECLARE_DYNAMIC (CBevelFillPoint)

Detailed Description

Do a pointy fill.

Author:
David_McClarnon (Xara Group Ltd) <camelotdev@xara.com>
Date:
1/2/99
See also:
CBeveler

Definition at line 252 of file bevfill.h.


Member Function Documentation

COLORREF CBevelFillPoint::CalcPixelValue BYTE  value,
double  Pos,
INT32  Contrast
[virtual]
 

Do a flat fill.

Author:
David_McClarnon (Xara Group Ltd) <camelotdev@xara.com>
Date:
11/11/98
Parameters:
[INPUTS] 
Returns:
TRUE for success
See also:
-

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 }

CBevelFillPoint::CC_DECLARE_DYNAMIC CBevelFillPoint   )  [private]
 


The documentation for this class was generated from the following files:
Generated on Sat Nov 10 03:51:53 2007 for Camelot by  doxygen 1.4.4