#include "camtypes.h"
#include "ai_bmp.h"
#include "page.h"
#include "ai5_eps.h"
#include "progress.h"
#include "nodebmp.h"
Go to the source code of this file.
Defines | |
#define | new CAM_DEBUG_NEW |
Functions | |
DECLARE_SOURCE ("$Revision") | |
bool | CharToHex (const char &cDigit, BYTE &nNum) |
Converts a hex character to a numeric byte. | |
BYTE | ColourValueToByte (const double &Value) |
Converts a colour value from a double to a BYTE. |
|
Definition at line 116 of file ai_bmp.cpp. |
|
Converts a hex character to a numeric byte.
Definition at line 523 of file ai_bmp.cpp. 00524 { 00525 char ch = camToupper(cDigit); 00526 00527 if ( (ch >= '0') && (ch <= '9') ) 00528 { 00529 nNum |= (BYTE) (ch - '0'); 00530 } 00531 else if ((ch >= 'A') && (ch <= 'F')) 00532 { 00533 nNum |= (BYTE) (ch - 'A') + 10; 00534 } 00535 else 00536 { 00537 // Error in hex data 00538 return false; 00539 } 00540 return true; 00541 }
|
|
Converts a colour value from a double to a BYTE.
Definition at line 558 of file ai_bmp.cpp.
|
|
|