IDS peak ICV v1.5.0
Loading...
Searching...
No Matches
Opacity Class Reference

Public Member Functions

None __init__ (self, int value=MAXIMUM)
 Creates an Opacity object with a default value of 100.
 
int value (self)
 Retrieve the current opacity.
 
bool __eq__ (self, object other)
 Check if the Opacity object is equal to a given value.
 

Static Public Attributes

int MINIMUM = 0
 
int MAXIMUM = 100
 

Protected Attributes

int _value = value
 

Detailed Description

Class representing opacity for painting operations.

Opacity indicates how much the underlying layer is hidden.

A value of 100 means that the underlying layer is completely hidden. On the other hand, 0 means that the layer is completely visible.

Since
ids_peak_icv 1.1

Constructor & Destructor Documentation

◆ __init__()

None __init__ ( self,
int value = MAXIMUM )

Creates an Opacity object with a default value of 100.

Parameters
value(int, optional) Value of the Opacity. Defaults to maximum.
Exceptions
OutOfRangeExceptionIf the opacity value is not within the valid range.
Since
ids_peak_icv 1.1

Member Function Documentation

◆ __eq__()

bool __eq__ ( self,
object other )

Check if the Opacity object is equal to a given value.

Parameters
otherValue to compare with.
Returns
True if equal, False otherwise.
Since
ids_peak_icv 1.1

◆ value()

int value ( self)

Retrieve the current opacity.

Returns
The current opacity value.
Since
ids_peak_icv 1.1

Field Documentation

◆ _value

int _value = value
protected

◆ MAXIMUM

int MAXIMUM = 100
static

◆ MINIMUM

int MINIMUM = 0
static