devcolor.h File Reference

(r1785/r751)

#include "colcontx.h"

Go to the source code of this file.

Functions

DWORD ConvertColourToScreenWord (ColourContext *cc, DocColour *col)
 Converts the given DocColour into the given screen (RGB) output context for whatever host OS we are running under. This function does NOT include any transparency information in the result.
DWORD ConvertColourToTransScreenWord (ColourContext *cc, DocColour *col)
 Converts the given DocColour into the given screen (RGB) output context for whatever host OS we are running under, including the transparent component as well.


Function Documentation

DWORD ConvertColourToScreenWord ColourContext cc,
DocColour col
[inline]
 

Converts the given DocColour into the given screen (RGB) output context for whatever host OS we are running under. This function does NOT include any transparency information in the result.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/4/94
Parameters:
cc - An *RGBT* colourContext for screen output [INPUTS] col - The Colour to be converted
- [OUTPUTS]
Returns:
An RGB value suitable for passing to the host OS
  • In this case, an rgb DWORD as used by Windows GDI (0x00BBGGRR)
Notes: Note that to save poking about in the internal DocColour representations, a function is supplied by the ColourContextRGBT class which just happens (!) to suit our needs. However, I've wrapped the call up in this WinOil veneer so that on other OS's it will not be necessary to touch that kernel code (just write equivalent code to go into here)

Definition at line 136 of file devcolor.h.

00137 {
00138     return( ((ColourContextRGBT *)cc)->ConvertToScreenWord(col) );
00139 }

DWORD ConvertColourToTransScreenWord ColourContext cc,
DocColour col
[inline]
 

Converts the given DocColour into the given screen (RGB) output context for whatever host OS we are running under, including the transparent component as well.

Author:
Jason_Williams (Xara Group Ltd) <camelotdev@xara.com>
Date:
28/4/94
Parameters:
cc - An *RGBT* colourContext for screen output [INPUTS] col - The Colour to be converted
- [OUTPUTS]
Returns:
An RGB value suitable for passing to the host OS
  • In this case, an rgb DWORD as used by GAVIN (0xTTBBGGRR) NOTE that this word must NOT be passed to Windows GDI, as GDI uses the MS byte in a different manner to Gavin.
Notes: Note that to save poking about in the internal DocColour representations, a function is supplied by the ColourContextRGBT class which just happens (!) to suit our needs. However, I've wrapped the call up in this WinOil veneer so that on other OS's it will not be necessary to touch that kernel code (just write equivalent code to go into here)

Definition at line 171 of file devcolor.h.

00172 {
00173     return( ((ColourContextRGBT *)cc)->ConvertToTransparentScreenWord(col) );
00174 }


Generated on Sat Nov 10 03:49:29 2007 for Camelot by  doxygen 1.4.4