mirror of
https://github.com/gen2brain/cam2ip.git
synced 2025-12-16 04:18:39 +00:00
Add some options
This commit is contained in:
@@ -92,6 +92,10 @@ func (c *Camera) Read() (img image.Image, err error) {
|
||||
img = im.Rotate(img, c.opts.Rotate)
|
||||
}
|
||||
|
||||
if c.opts.Flip != "" {
|
||||
img = im.Flip(img, c.opts.Flip)
|
||||
}
|
||||
|
||||
if c.opts.Timestamp {
|
||||
img, err = im.Timestamp(img, "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user