Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Public Member Functions | Public Attributes
ScColorShade Class Reference

#include <sccolorshade.h>

List of all members.

Public Member Functions

 ScColorShade (void)
 ScColorShade (const QColor &c, int level)
 ScColorShade (const ScColor &c, int level)
ScColor getShadedColor (void)

Public Attributes

ScColor color
int shade

Detailed Description

Definition at line 29 of file sccolorshade.h.


Constructor & Destructor Documentation

Definition at line 27 of file sccolorshade.cpp.

{
       color.setColor( 0, 0, 0, 0 );
       shade = 100;
}
ScColorShade::ScColorShade ( const QColor &  c,
int  level 
)

Definition at line 33 of file sccolorshade.cpp.

{
       color = ScColor(c.red(), c.green(), c.blue());
       shade = level;
}
ScColorShade::ScColorShade ( const ScColor &  c,
int  level 
)

Definition at line 39 of file sccolorshade.cpp.

{
       color = c;
       shade = level;
}

Member Function Documentation

ScColor ScColorShade::getShadedColor ( void  )

Definition at line 45 of file sccolorshade.cpp.

{
       ScColor value;
       if( color.getColorModel() == colorModelRGB )
       {
              RGBColor rgb;
              ScColorEngine::getShadeColorRGB(color, NULL, rgb, shade);
              value.setColorRGB( rgb.r, rgb.g, rgb.b );
       }
       else
       {
              CMYKColor cmyk;
              ScColorEngine::getShadeColorCMYK(color, NULL, cmyk, shade);
              value.setColor( cmyk.c, cmyk.m, cmyk.y, cmyk.k );
       }
       return value;
}

Member Data Documentation

Definition at line 39 of file sccolorshade.h.

Definition at line 40 of file sccolorshade.h.


The documentation for this class was generated from the following files: