An official website of the United States government
Here’s how you know
Official websites use .gov
A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS
A
lock
( ) or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
Isis Developer Reference
|
This class is designed to serialize QColor in a human-readable form. More...
#include <Color.h>
Static Public Member Functions | |
static QColor | fromRGBAString (QString) |
Converts a QString to its QColor. | |
static QString | toRGBAString (QColor) |
Convert a QColor to its QString. | |
static QRegExp | colorRGBAFormat () |
Get the colorRGBAFormat. | |
This class is designed to serialize QColor in a human-readable form.
QColor provides no string conversions that include the alpha value (probably because argb and rgba both look the same and neither are standard). But encoding the colors using hex is worse than the non-standard conversion – so this class will convert to/from rgba.
|
static |
|
static |
Converts a QString to its QColor.
References colorRGBAFormat(), and Isis::toInt().
Referenced by Isis::ImageListActionWorkOrder::execute().
|
static |
Convert a QColor to its QString.
References _FILEINFO_, and Isis::IException::Unknown.
Referenced by Isis::ImageListActionWorkOrder::setupExecution().