-
-
Notifications
You must be signed in to change notification settings - Fork 5
Typography
Namespace: Skylark.Standard.Extension.Typography
Assembly: Skylark.Standard.dll
This class provides extension methods for converting pixel measurements to other typographic units.
PixelToEm(decimal Pixel = MTTM.Value, decimal Coefficient = MTTM.Pixel_Em_Coefficient, decimal Constant = MTTM.Pixel_Em_Constant)
Converts pixels to ems based on the given coefficient and constant values. Throws a Skylark.Exception if an error occurs.
- Pixel (decimal): The number of pixels to convert. Defaults to the value specified in MTTM.
- Coefficient (decimal): The coefficient value to use in the conversion formula. Defaults to the value specified in MTTM.
- Constant (decimal): The constant value to use in the conversion formula. Defaults to the value specified in MTTM.
The number of ems equivalent to the specified number of pixels.
PixelToEmAsync(decimal Pixel = MTTM.Value, decimal Coefficient = MTTM.Pixel_Em_Coefficient, decimal Constant = MTTM.Pixel_Em_Constant)
Converts pixels to ems asynchronously based on the given coefficient and constant values.
- Pixel (decimal): The number of pixels to convert. Defaults to the value specified in MTTM.
- Coefficient (decimal): The coefficient value to use in the conversion formula. Defaults to the value specified in MTTM.
- Constant (decimal): The constant value to use in the conversion formula. Defaults to the value specified in MTTM.
A Task object representing the asynchronous operation, which when completed returns the number of ems equivalent to the specified number of pixels.
PixelToRem(decimal Pixel = MTTM.Value, decimal Coefficient = MTTM.Pixel_Rem_Coefficient, decimal Constant = MTTM.Pixel_Rem_Constant)
Converts pixels to rems based on the given coefficient and constant values. Throws a Skylark.Exception if an error occurs.
- Pixel (decimal): The number of pixels to convert. Defaults to the value specified in MTTM.
- Coefficient (decimal): The coefficient value to use in the conversion formula. Defaults to the value specified in MTTM.
- Constant (decimal): The constant value to use in the conversion formula. Defaults to the value specified in MTTM.
The number of rems equivalent to the specified number of pixels.
- Tax
- Url
- Web
- Ping
- Port
- Text
- Time
- Hash
- Word
- Color
- Speed
- Lottery
- Storage
- Browser
- Unicode
- Password
- JavaScript
- Cryptology
- Typography
- Temperature
- Compression
- Decompression
- Cascading Style Sheets
- JavaScript Object Notation
- Hypertext Markup Language
- Extensible Markup Language
- Extensible HyperText Markup Language