Core class for palettes.
More...
#include <palette.h>
|
virtual Color | GetColor (const double &) const |
| Compute the color. More...
|
|
virtual QImage | Draw (int=32, int=1024) const |
| Draws an image with the colors of the palette. More...
|
|
virtual QImage | CreateImage (int, int=16, bool=false) const |
| Create an image form a palette. More...
|
|
◆ CreateImage()
QImage GenericPalette::CreateImage |
( |
int |
s, |
|
|
int |
t = 16 , |
|
|
bool |
v = false |
|
) |
| const |
|
virtual |
Create an image form a palette.
- Parameters
-
s | Size of the image. |
t | Thickness of color ramp. |
v | Vertical flag, boolean set to true to generate a vertical ramp. |
◆ Draw()
QImage GenericPalette::Draw |
( |
int |
width = 32 , |
|
|
int |
height = 1024 |
|
) |
| const |
|
virtual |
Draws an image with the colors of the palette.
The palette is drawn vertically.
- Parameters
-
width,height | Width and height of the image. |
◆ GetColor()
Color GenericPalette::GetColor |
( |
const double & |
| ) |
const |
|
inlinevirtual |
Compute the color.
- Parameters
-
Reimplemented in Palette.