![]() |
Aspose.Barcode for Python via Java Generation and Recognition API docs
|
Specifies the size value in different units (Pixel, Inches, etc.). More...
Inherits _MwWrapper.
Public Member Functions | |
| None | __init__ (self, Union[Unit, Any] source) |
| bool | __eq__ (self, Optional[Unit] other) |
| Determines whether this instance and a specified object, which must also be a Unit object, have the same value. More... | |
| int | __hash__ (self) |
| Returns the hash code for the current instance. More... | |
| str | __str__ (self) |
| Returns a human-readable string representation of this Unit. More... | |
| float | document (self) |
| Gets size value in document units. More... | |
| None | document (self, float value) |
| Sets size value in document units. More... | |
| float | inches (self) |
| Gets size value in inches. More... | |
| None | inches (self, float value) |
| Sets size value in inches. More... | |
| float | millimeters (self) |
| Gets size value in millimeters. More... | |
| None | millimeters (self, float value) |
| Sets size value in millimeters. More... | |
| float | pixels (self) |
| Gets size value in pixels. More... | |
| None | pixels (self, float value) |
| Sets size value in pixels. More... | |
| float | point (self) |
| Gets size value in point. More... | |
| None | point (self, float value) |
| Sets size value in point. More... | |
Specifies the size value in different units (Pixel, Inches, etc.).
This sample shows how to create and save a BarCode image.
| None __init__ | ( | self, | |
| Union[Unit, Any] | source | ||
| ) |
| bool __eq__ | ( | self, | |
| Optional[Unit] | other | ||
| ) |
Determines whether this instance and a specified object, which must also be a Unit object, have the same value.
| other | The Unit to compare to this instance. |
| int __hash__ | ( | self | ) |
Returns the hash code for the current instance.
| str __str__ | ( | self | ) |
| float document | ( | self | ) |
Gets size value in document units.
| None document | ( | self, | |
| float | value | ||
| ) |
Sets size value in document units.
| float inches | ( | self | ) |
Gets size value in inches.
| None inches | ( | self, | |
| float | value | ||
| ) |
Sets size value in inches.
| float millimeters | ( | self | ) |
Gets size value in millimeters.
| None millimeters | ( | self, | |
| float | value | ||
| ) |
Sets size value in millimeters.
| float pixels | ( | self | ) |
Gets size value in pixels.
| None pixels | ( | self, | |
| float | value | ||
| ) |
Sets size value in pixels.
| float point | ( | self | ) |
Gets size value in point.
| None point | ( | self, | |
| float | value | ||
| ) |
Sets size value in point.