Documentation
¶
Overview ¶
Package image contains methods to manipulate png image files.
Index ¶
- type Image
- func (i Image) CreatedUtc() time.Time
- func (i Image) FileName() string
- func (i Image) LatLng() latlng.LatLng
- func (i Image) Path() string
- func (i *Image) SetCreatedUtc(createdUtc time.Time) error
- func (i *Image) SetFileName(filename string) error
- func (i *Image) SetLatLng(latLong latlng.LatLng) error
- func (i *Image) SetPath(path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Type Image contains metadata to associate with the image when it is persisted.
func New ¶
Function New is a factory that creates an initialized Image. Parameter path is the path to an image file that will be processed. Parameter filename is the name of the image file to be processed. Returns an initialized instance or error.
func NewImageFromPath ¶
Function New is a factory that creates an initialized Image. Parameter path is the path and filename to an image file that will be processed. Returns an initialized instance or error.
func (Image) CreatedUtc ¶
Method Created gets the UTC date/time when the instance was created.
func (Image) LatLng ¶
Method LatLng gets the latitude and longitude for where the image was created.
func (*Image) SetCreatedUtc ¶
Method SetCreatedUtc sets the value of the createdUtc in the instance. If there is an error, an error is returned, otherwise nil.
func (*Image) SetFileName ¶
Method SetFileName sets the value of the name of the image file in the instance. If there is an error, an error is returned, otherwise nil.