a new object with type S, a subtype of T
|
|
float
|
fromByte(self,
float)
Converts byte values in the range 0-255 to floating point. |
|
|
float
|
fromByteSingle(self,
float)
Converts byte values in the range 0-255 to floating point. |
|
|
float list
|
fromFloat(src,
alpha)
Convert a sequence of floating-point values to from_byte(x*255). |
|
|
True if toByte(x) appears to return x*255, False otherwise.
|
|
True if toByte(0) returns a value <= 0, False otherwise.
|
|
float
|
toByte(self,
float)
Converts floating point values to byte values in the range 0-255. |
|
|
float
|
toByteSingle(self,
float)
Converts floating point values to byte values in the range 0-255. |
|
|
float list
|
toFloat(src,
alpha)
Convert a sequence of floating-point values to to_byte(x)/255. |
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__init__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|