Method | Description | |
---|---|---|
Color2Vector ( Color color ) : float[] |
Converts a Color object to a vector and returns it.
|
|
FromColorMatrix ( System.Drawing.Imaging.ColorMatrix colorMatrix ) : void |
Translates the matrix from a ColorMatrix.
|
|
FromJaggedMatrix ( float matrixData ) : void |
Returns the given matrix data as a jagged matrix
|
|
Multiply ( |
Multiplies the given matrix
|
|
Multiply ( |
Multiply the given matrix using the specified matrix order.
|
|
QColorMatrix ( ) : System |
Default constructor
|
|
QColorMatrix ( System.Drawing.Imaging.ColorMatrix colorMatrix ) : System |
Constructor specifying matrix data
|
|
QColorMatrix ( |
Constructor specifying matrix data
|
|
QColorMatrix ( float matrixData ) : System |
Constructor specifying matrix data
|
|
Reset ( ) : void |
Set to identity matrix
|
|
RotateBlue ( float phi ) : void |
Rotate the matrix around the blue color axes. The color of the rotation axis is unchanged, the other two colors are rotated in color space.
|
|
RotateBlue ( float phi, MatrixOrder order ) : void |
Rotate the matrix around the blue color axes. The color of the rotation axis is unchanged, the other two colors are rotated in color space.
|
|
RotateGreen ( float phi ) : void |
Rotate the matrix around the green color axes. The color of the rotation axis is unchanged, the other two colors are rotated in color space.
|
|
RotateGreen ( float phi, MatrixOrder order ) : void |
Rotate the matrix around the green color axes. The color of the rotation axis is unchanged, the other two colors are rotated in color space.
|
|
RotateHue ( float phi ) : void |
Rotate the hue around the gray axis, keeping luminance fixed. Grays are fixed, all other colors change.
|
|
RotateRed ( float phi ) : void |
Rotate the matrix around the red color axes. The color of the rotation axis is unchanged, the other two colors are rotated in color space.
|
|
RotateRed ( float phi, MatrixOrder order ) : void |
Rotate the matrix around the red color axes. The color of the rotation axis is unchanged, the other two colors are rotated in color space.
|
|
Scale ( float scaleRed, float scaleGreen, float scaleBlue, float scaleOpacity ) : void |
Update this matrix with the product of itself and a scaling vector.
|
|
Scale ( float scaleRed, float scaleGreen, float scaleBlue, float scaleOpacity, MatrixOrder order ) : void |
Update this matrix with the product of itself and a scaling vector.
|
|
ScaleColors ( float scale ) : void |
Scale just the three colors with the same amount, leave opacity unchanged
|
|
ScaleColors ( float scale, MatrixOrder order ) : void |
Scale just the three colors with the same amount, leave opacity unchanged
|
|
ScaleOpacity ( float scaleOpacity ) : void |
Scales the matrix opacity
|
|
ScaleOpacity ( float scaleOpacity, MatrixOrder order ) : void |
Scales the matrix opacity
|
|
SetBrightness ( float offset ) : void |
Sets the matrix brightness
|
|
SetContrast ( float scale ) : void |
Sets the matrix contrast
|
|
SetSaturation ( float saturation ) : void |
Sets the matrix saturation
|
|
SetSaturation ( float saturation, MatrixOrder order ) : void |
Set the saturation of the matrix. Saturation of 0.0f yields black and white, 1.0f is neutral.
|
|
SetSaturation2 ( float saturation ) : void |
Sets the matrix saturation using MatrixOrder.MatrixOrderAppend order.
|
|
ShearBlue ( float red, float green ) : void |
Shear the matrix in the blue color plane. The color is influenced by the other two planes.
|
|
ShearBlue ( float red, float green, MatrixOrder order ) : void |
Shear the matrix in the blue color plane. The color is influenced by the other two planes.
|
|
ShearGreen ( float red, float blue ) : void |
Shear the matrix in the green color plane. The color is influenced by the other two planes.
|
|
ShearGreen ( float red, float blue, MatrixOrder order ) : void |
Shear the matrix in the green color plane. The color is influenced by the other two planes.
|
|
ShearRed ( float green, float blue ) : void |
Shear the matrix in the red color plane. The color is influenced by the other two planes.
|
|
ShearRed ( float green, float blue, MatrixOrder order ) : void |
Shear the matrix in the red color plane. The color is influenced by the other two planes.
|
|
ToColorMatrix ( ) : System.Drawing.Imaging.ColorMatrix |
Converts the matrix to a ColorMatrix and returns it.
|
|
ToJaggedMatrix ( ) : float[][] |
Converts the matrix to a jagged array of data
|
|
TransformColors ( Color colors ) : Color[] |
Multiply each color by the matrix.
|
|
TransformVector ( float v ) : float[] |
Multiply the vector v by the matrix in place. v points to an array of at least four values, representing R, G, B and A.
|
|
TransformVector ( float vector, bool normalize ) : float[] |
Transforms a vector
|
|
Translate ( float offsetRed, float offsetGreen, float offsetBlue, float offsetOpacity ) : void |
Update this matrix with the product of itself and a translation vector.
|
|
Translate ( float offsetRed, float offsetGreen, float offsetBlue, float offsetOpacity, MatrixOrder order ) : void |
Update this matrix with the product of itself and a translation vector.
|
|
TranslateColors ( float offset ) : void |
Translate matrix colors
|
|
TranslateColors ( float offset, MatrixOrder order ) : void |
Translate matrix colors
|
|
TranslateOpacity ( float offsetOpacity ) : void |
Translate matrix opacity
|
|
TranslateOpacity ( float offsetOpacity, MatrixOrder order ) : void |
Translate matrix opacity
|
|
Vector2Color ( float vector ) : Color |
Converts a vector array to a Color object.
|
Method | Description | |
---|---|---|
Copy ( |
||
Copy ( float m ) : void | ||
InitHue ( ) : void | ||
RotateColor ( float phi, int x, int y, MatrixOrder order ) : void |
X and Y are the indices of the value to receive the sin(phi) value
|
|
ShearColor ( int x, int y1, float d1, int y2, float d2, MatrixOrder order ) : void |
public static Color2Vector ( Color color ) : float[] | ||
color | Color | Color to convert |
return | float[] |
public FromColorMatrix ( System.Drawing.Imaging.ColorMatrix colorMatrix ) : void | ||
colorMatrix | System.Drawing.Imaging.ColorMatrix | ColorMatrix to translate from |
return | void |
public FromJaggedMatrix ( float matrixData ) : void | ||
matrixData | float | Matrix data |
return | void |
public Multiply ( |
||
matrix | Matrix to multiply | |
return | void |
public Multiply ( |
||
matrix | Matrix to multiply | |
order | MatrixOrder | Order to multiply with |
return | void |
public QColorMatrix ( System.Drawing.Imaging.ColorMatrix colorMatrix ) : System | ||
colorMatrix | System.Drawing.Imaging.ColorMatrix | Matrix data to initialize with |
return | System |
public QColorMatrix ( |
||
matrixData | Matrix data to initialize with | |
return | System |
public QColorMatrix ( float matrixData ) : System | ||
matrixData | float | Matrix data to initialize with |
return | System |
public RotateBlue ( float phi ) : void | ||
phi | float | Angle in degrees to rotate (-180.0f... 180.0f). |
return | void |
public RotateBlue ( float phi, MatrixOrder order ) : void | ||
phi | float | Angle in degrees to rotate (-180.0f... 180.0f). |
order | MatrixOrder | Matrix order |
return | void |
public RotateGreen ( float phi ) : void | ||
phi | float | Angle in degrees to rotate (-180.0f... 180.0f). |
return | void |
public RotateGreen ( float phi, MatrixOrder order ) : void | ||
phi | float | Angle in degrees to rotate (-180.0f... 180.0f). |
order | MatrixOrder | Matrix order |
return | void |
public RotateHue ( float phi ) : void | ||
phi | float | Degrees to rotate |
return | void |
public RotateRed ( float phi ) : void | ||
phi | float | Angle in degrees to rotate (-180.0f... 180.0f). |
return | void |
public RotateRed ( float phi, MatrixOrder order ) : void | ||
phi | float | Angle in degrees to rotate (-180.0f... 180.0f). |
order | MatrixOrder | Matrix order |
return | void |
public Scale ( float scaleRed, float scaleGreen, float scaleBlue, float scaleOpacity ) : void | ||
scaleRed | float | Red scaling value |
scaleGreen | float | Green scaling value |
scaleBlue | float | Blue scaling value |
scaleOpacity | float | Alpha scaling value |
return | void |
public Scale ( float scaleRed, float scaleGreen, float scaleBlue, float scaleOpacity, MatrixOrder order ) : void | ||
scaleRed | float | Red scaling value |
scaleGreen | float | Green scaling value |
scaleBlue | float | Blue scaling value |
scaleOpacity | float | Alpha scaling value |
order | MatrixOrder | Matrix order |
return | void |
public ScaleColors ( float scale ) : void | ||
scale | float | Scale value |
return | void |
public ScaleColors ( float scale, MatrixOrder order ) : void | ||
scale | float | Scale value |
order | MatrixOrder | Matrix order |
return | void |
public ScaleOpacity ( float scaleOpacity ) : void | ||
scaleOpacity | float | Alpha scaling value |
return | void |
public ScaleOpacity ( float scaleOpacity, MatrixOrder order ) : void | ||
scaleOpacity | float | Alpha scaling value |
order | MatrixOrder | Matrix order |
return | void |
public SetBrightness ( float offset ) : void | ||
offset | float | Brightness offset value |
return | void |
public SetContrast ( float scale ) : void | ||
scale | float | Constrast scale value |
return | void |
public SetSaturation ( float saturation ) : void | ||
saturation | float | Saturation value |
return | void |
public SetSaturation ( float saturation, MatrixOrder order ) : void | ||
saturation | float | Saturation value |
order | MatrixOrder | Matrix order |
return | void |
public SetSaturation2 ( float saturation ) : void | ||
saturation | float | Saturation value. |
return | void |
public ShearBlue ( float red, float green ) : void | ||
red | float | Red color plane |
green | float | Green color plane |
return | void |
public ShearBlue ( float red, float green, MatrixOrder order ) : void | ||
red | float | Red color plane |
green | float | Green color plane |
order | MatrixOrder | Matrix order |
return | void |
public ShearGreen ( float red, float blue ) : void | ||
red | float | Red color plane |
blue | float | Blue color plane |
return | void |
public ShearGreen ( float red, float blue, MatrixOrder order ) : void | ||
red | float | Red color plane |
blue | float | Blue color plane |
order | MatrixOrder | Matrix order |
return | void |
public ShearRed ( float green, float blue ) : void | ||
green | float | Green color plane |
blue | float | Blue color plane |
return | void |
public ShearRed ( float green, float blue, MatrixOrder order ) : void | ||
green | float | Green color plane |
blue | float | Blue color plane |
order | MatrixOrder | Matrix order |
return | void |
public ToColorMatrix ( ) : System.Drawing.Imaging.ColorMatrix | ||
return | System.Drawing.Imaging.ColorMatrix |
public TransformColors ( Color colors ) : Color[] | ||
colors | Color | |
return | Color[] |
public TransformVector ( float vector, bool normalize ) : float[] | ||
vector | float | Vector to transform |
normalize | bool | Flag to normalize data before returning |
return | float[] |
public Translate ( float offsetRed, float offsetGreen, float offsetBlue, float offsetOpacity ) : void | ||
offsetRed | float | Red offset value |
offsetGreen | float | Green offset value |
offsetBlue | float | Blue offset value |
offsetOpacity | float | Alpha offset value |
return | void |
public Translate ( float offsetRed, float offsetGreen, float offsetBlue, float offsetOpacity, MatrixOrder order ) : void | ||
offsetRed | float | Red offset value |
offsetGreen | float | Green offset value |
offsetBlue | float | Blue offset value |
offsetOpacity | float | Alpha offset value |
order | MatrixOrder | Matrix order |
return | void |
public TranslateColors ( float offset ) : void | ||
offset | float | Offset value |
return | void |
public TranslateColors ( float offset, MatrixOrder order ) : void | ||
offset | float | Offset value |
order | MatrixOrder | Matrix order |
return | void |
public TranslateOpacity ( float offsetOpacity ) : void | ||
offsetOpacity | float | Alpha offset value |
return | void |
public TranslateOpacity ( float offsetOpacity, MatrixOrder order ) : void | ||
offsetOpacity | float | Alpha offset value |
order | MatrixOrder | Matrix order |
return | void |
public static Vector2Color ( float vector ) : Color | ||
vector | float | Floar array vector |
return | Color |