A class to make it easier to convert dimensions.
Constructor. |
|
Converts pixels to tenths of a mm. |
|
Converts tenths of a mm to pixels. |
|
Gets the pixel size for the given dimension. |
|
Gets the mm size for the given dimension. |
A public C++ attribute of type |
|
A public C++ attribute of type |
|
A public C++ attribute of type |
Possible constructors:
TextAttrDimensionConverter(dc : DC, scale: float=1.0, parentSize:
Size=DefaultSize) -> None
TextAttrDimensionConverter(ppi : int, scale: float=1.0, parentSize:
Size=DefaultSize) -> None
A class to make it easier to convert dimensions.
Constructor.
__init__ (self, dc : DC, scale: float=1.0, parentSize: Size=DefaultSize)
__init__ (self, ppi : int, scale: float=1.0, parentSize: Size=DefaultSize)
ppi (int)
scale (float)
parentSize (wx.Size)
None
Converts pixels to tenths of a mm.
pixels (int)
int
Converts tenths of a mm to pixels.
units (int)
int
Gets the pixel size for the given dimension.
direction (int)
int
Gets the mm size for the given dimension.
int
A public C++ attribute of type int
.
A public C++ attribute of type float
.