|
def | __init__ (self, source) |
|
def | equals (self, obj) |
| Determines whether this instance and a specified object, which must also be a Unit object, have the same value. More...
|
|
def | getDocument (self) |
| Gets size value in document units. More...
|
|
def | getInches (self) |
| Gets size value in inches. More...
|
|
def | getMillimeters (self) |
| Gets size value in millimeters. More...
|
|
def | getPixels (self) |
| Gets size value in pixels. More...
|
|
def | getPoint (self) |
| Gets size value in point. More...
|
|
def | init (self) |
|
def | setDocument (self, value) |
| Sets size value in document units. More...
|
|
def | setInches (self, value) |
| Sets size value in inches. More...
|
|
def | setMillimeters (self, value) |
| Sets size value in millimeters. More...
|
|
def | setPixels (self, value) |
| Sets size value in pixels. More...
|
|
def | setPoint (self, value) |
| Sets size value in point. More...
|
|
def | toString (self) |
| Returns a human-readable string representation of this Unit. More...
|
|
def | getJavaClass (self) |
|
def | getJavaClassName (self) |
|
def | isNull (self) |
|
def | printJavaClassName (self) |
|
def | setJavaClass (self, javaClass) |
|
Specifies the size value in different units (Pixel, Inches, etc.).
This sample shows how to create and save a BarCode image.
generator = Generation.BarcodeGenerator(Generation.EncodeTypes.CODE_128,"123456789")
generator.getParameters().getBarcode().getBarHeight().setMillimeters(10)
generator.save(self.image_path_to_save, Generation.BarCodeImageFormat.PNG)