mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 08:12:36 +02:00
In order to let third parties use the package of this library, we moved the pkg folder out of the locked internal folder
21 lines
423 B
Go
21 lines
423 B
Go
package epuboptions
|
|
|
|
import (
|
|
"github.com/celogeek/go-comic-converter/v2/pkg/utils"
|
|
)
|
|
|
|
type View struct {
|
|
Width, Height int
|
|
AspectRatio float64
|
|
PortraitOnly bool
|
|
Color Color
|
|
}
|
|
|
|
func (v View) Dimension() string {
|
|
return utils.IntToString(v.Width) + "x" + utils.IntToString(v.Height)
|
|
}
|
|
|
|
func (v View) Port() string {
|
|
return "width=" + utils.IntToString(v.Width) + ",height=" + utils.IntToString(v.Height)
|
|
}
|