OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
palette.cpp File Reference

Implementation of TPalette, an encapsulation of the GDI Palette object. More...

#include <owl/pch.h>
#include <owl/defs.h>
#include <owl/gdiobjec.h>
#include <owl/clipboar.h>
#include <owl/file.h>
#include <owl/filename.h>
#include <memory.h>
#include <pshpack1.h>
#include <poppack.h>

Go to the source code of this file.

Namespaces

namespace  owl
 Object Windows Library (OWLNext Core)
 

Macros

#define CMYK(c, m, y, k)   (static_cast<COLORREF>((((BYTE)(c)|((WORD)((BYTE)(m))<<8))|(((DWORD)(BYTE)(y))<<16))|(((DWORD)(BYTE)(k))<<24)))
 
#define GetCValue(cmyk)   ((BYTE)(cmyk))
 
#define GetMValue(cmyk)   ((BYTE)((cmyk)>> 8))
 
#define GetYValue(cmyk)   ((BYTE)((cmyk)>>16))
 
#define GetKValue(cmyk)   ((BYTE)((cmyk)>>24))
 

Functions

 owl::DIAG_DECLARE_GROUP (OwlGDI)
 
 owl::DIAG_DECLARE_GROUP (OwlGDIOrphan)
 
void owl::HSL_to_RGB (double &h, double &sl, double &l, double *r, double *g, double *b)
 convert HSL to RGB
 

Detailed Description

Implementation of TPalette, an encapsulation of the GDI Palette object.

Definition in file palette.cpp.

Macro Definition Documentation

◆ CMYK

#define CMYK ( c,
m,
y,
k )   (static_cast<COLORREF>((((BYTE)(c)|((WORD)((BYTE)(m))<<8))|(((DWORD)(BYTE)(y))<<16))|(((DWORD)(BYTE)(k))<<24)))

Definition at line 492 of file palette.cpp.

◆ GetCValue

#define GetCValue ( cmyk)    ((BYTE)(cmyk))

Definition at line 494 of file palette.cpp.

◆ GetKValue

#define GetKValue ( cmyk)    ((BYTE)((cmyk)>>24))

Definition at line 497 of file palette.cpp.

◆ GetMValue

#define GetMValue ( cmyk)    ((BYTE)((cmyk)>> 8))

Definition at line 495 of file palette.cpp.

◆ GetYValue

#define GetYValue ( cmyk)    ((BYTE)((cmyk)>>16))

Definition at line 496 of file palette.cpp.