class DDrawingPixel is a DDrawingPrimitive that highlights a pixel in the viewer window by a cross.
More...
|
| def | DDrawingPixel (x, y, red, green, blue, alpha=255) |
| | Construct DDrawingPixel given its position and color. More...
|
| |
| def | x () |
| | X-Position. More...
|
| |
| def | y () |
| | Y-Position. More...
|
| |
| def | setX (x) |
| | Set X-Position. More...
|
| |
| def | setY (y) |
| | Set Y-Position. More...
|
| |
| def | type () |
| | Returns the type of the primitve. More...
|
| |
| def | red () |
| | red component of the color. More...
|
| |
| def | green () |
| | green component of the color. More...
|
| |
| def | blue () |
| | blue component of the color. More...
|
| |
| def | alpha () |
| | alpha component of the color. More...
|
| |
| def | setColor (red, green, blue, alpha) |
| | Set the red, green, blue and alpha component of the color. More...
|
| |
class DDrawingPixel is a DDrawingPrimitive that highlights a pixel in the viewer window by a cross.
It is defined by its position.
◆ DDrawingPixel()
| def dectris.albula.DDrawingPixel.DDrawingPixel |
( |
|
x, |
|
|
|
y, |
|
|
|
red, |
|
|
|
green, |
|
|
|
blue, |
|
|
|
alpha = 255 |
|
) |
| |
Construct DDrawingPixel given its position and color.
- Parameters
-
| x | Float. X-Position. |
| y | Float. Y-Position. |
| red | Integer between 0 and 255 |
| green | Integer between 0 and 255 |
| blue | Integer between 0 and 255 |
| alpha | Integer between 0 and 255. alpha defines the opacity of the displayed primitive. |
◆ setX()
| def dectris.albula.DDrawingPixel.setX |
( |
|
x | ) |
|
Set X-Position.
- Parameters
-
◆ setY()
| def dectris.albula.DDrawingPixel.setY |
( |
|
y | ) |
|
Set Y-Position.
- Parameters
-
◆ x()
| def dectris.albula.DDrawingPixel.x |
( |
| ) |
|
X-Position.
- Returns
- Float.
◆ y()
| def dectris.albula.DDrawingPixel.y |
( |
| ) |
|
Y-Position.
- Returns
- Float.