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