Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAspecRatio ¶
func GetAspecRatio(res Resolution) float64
func IsLandScape ¶
func IsLandScape(res Resolution) bool
Types ¶
type Resolution ¶
type Resolution interface { GetID() ResolutionID GetHeight() uint64 GetWidth() uint64 }
func NewMasterResolution ¶
func NewMasterResolution(height, width uint64) Resolution
func NewOriginalResolution ¶
func NewOriginalResolution(height, width uint64) Resolution
func NewResolution ¶
func NewResolution(height, width uint64) Resolution
type ResolutionID ¶
type ResolutionID string
const ( OriginalResolution ResolutionID = "original" MasterResolution ResolutionID = "master" )
func GenerateResolutionID ¶
func GenerateResolutionID(height, width uint64) ResolutionID
Click to show internal directories.
Click to hide internal directories.