Documentation ¶
Overview ¶
Image helpers to transform image.
Index ¶
- type Image
- func (i *Image) EPUBImgPath() string
- func (i *Image) EPUBPagePath() string
- func (i *Image) EPUBSpacePath() string
- func (i *Image) ImgKey() string
- func (i *Image) ImgPath() string
- func (i *Image) ImgStyle(viewWidth, viewHeight int, align string) string
- func (i *Image) PageKey() string
- func (i *Image) PagePath() string
- func (i *Image) RelSize(viewWidth, viewHeight int) (relWidth, relHeight int)
- func (i *Image) SpaceKey() string
- func (i *Image) SpacePath() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { Id int Part int Raw image.Image Width int Height int IsCover bool IsBlank bool DoublePage bool Path string Name string Position string Format string OriginalAspectRatio float64 }
func (*Image) EPUBSpacePath ¶
path of the blank page into the EPUB
func (*Image) ImgStyle ¶
style to apply to the image.
center by default. align to left or right if it's part of the splitted double page.
Click to show internal directories.
Click to hide internal directories.