class PtToPxConverter { //Json 中的PT单位转换为像素单位 static double ptToPx(double? value) { if (value == null) { return 10.5 * 4 / 3; } return value * 4 / 3; } }