Property | Type | Description | |
---|---|---|---|
intocm | double | ||
pxtocm | double |
Method | Description | |
---|---|---|
CmToInch ( double cm ) : double |
Cms to inch.
|
|
CmToInchAsString ( double cm ) : string |
Cms to inch as string.
|
|
CmToPixel ( double cm ) : double |
Cms to pixel.
|
|
CmToPixelAsString ( double cm ) : string |
Cms to pixel as string.
|
|
GetDoubleFromAnOfficeSizeValue ( string aSizeValue ) : double |
Gets the double from an office size value. There is no translation between cm or inch. You will just get the size you posted as double value. |
|
GetHeightInCm ( int heightPixel, int dpiY ) : double |
Cacluates the height in cm from height in pixel by using the vertical resolution.
|
|
GetHeightInPixel ( int height, int dpiY, bool cm ) : double |
Cacluates the relative height in pixel from height in cm or inch by using the vertical resolution.
|
|
GetPixelFromAnOfficeSizeValue ( string aSizeValue ) : int |
Gets the pixel from an office size value. e.g pass 1.54cm and get back 58
|
|
GetWidthInCm ( int widthPixel, int dpiX ) : double |
Cacluates the width in cm from width in pixel by using the horizontal resolution.
|
|
GetWidthInPixel ( int width, int dpiX, bool cm ) : double |
Cacluates the width in pixel from width in cm or inch by using the horizontal resolution.
|
|
InchToCm ( double inch ) : double |
Inches to cm.
|
|
InchToCmAsString ( double inch ) : string |
Inches to cm as string.
|
|
InchToPixel ( double inch ) : double |
Inches to pixel.
|
|
InchToPixelAsString ( double inch ) : string |
Inches to pixel as string.
|
|
IsCm ( string value ) : bool |
Determines whether the specified value is in cm.
|
|
IsInch ( string value ) : bool |
Determines whether the specified value is in inch.
|
|
MmToPixel ( double mm ) : double |
Cms to pixel.
|
|
SizeConverter ( ) : System |
Initializes a new instance of the SizeConverter class.
|
public static CmToInch ( double cm ) : double | ||
cm | double | The cm. |
return | double |
public static CmToInchAsString ( double cm ) : string | ||
cm | double | The cm. |
return | string |
public static CmToPixel ( double cm ) : double | ||
cm | double | The cm. |
return | double |
public static CmToPixelAsString ( double cm ) : string | ||
cm | double | The cm. |
return | string |
public static GetDoubleFromAnOfficeSizeValue ( string aSizeValue ) : double | ||
aSizeValue | string | A size value. |
return | double |
public static GetHeightInCm ( int heightPixel, int dpiY ) : double | ||
heightPixel | int | The height. |
dpiY | int | The dpi Y. |
return | double |
public static GetHeightInPixel ( int height, int dpiY, bool cm ) : double | ||
height | int | The height. |
dpiY | int | The dpi vertical. |
cm | bool | if set to |
return | double |
public static GetPixelFromAnOfficeSizeValue ( string aSizeValue ) : int | ||
aSizeValue | string | A size value. |
return | int |
public static GetWidthInCm ( int widthPixel, int dpiX ) : double | ||
widthPixel | int | The width. |
dpiX | int | The dpi X. |
return | double |
public static GetWidthInPixel ( int width, int dpiX, bool cm ) : double | ||
width | int | The width. |
dpiX | int | The dpi X. |
cm | bool | if set to |
return | double |
public static InchToCm ( double inch ) : double | ||
inch | double | The inch. |
return | double |
public static InchToCmAsString ( double inch ) : string | ||
inch | double | The inch. |
return | string |
public static InchToPixel ( double inch ) : double | ||
inch | double | The inch. |
return | double |
public static InchToPixelAsString ( double inch ) : string | ||
inch | double | The inch. |
return | string |
public static IsCm ( string value ) : bool | ||
value | string | The value. |
return | bool |
public static IsInch ( string value ) : bool | ||
value | string | The value. |
return | bool |
public static MmToPixel ( double mm ) : double | ||
mm | double | |
return | double |