Documentation ¶
Overview ¶
Package rgf provides functionality for reading and writing EV3 RGF files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encode ¶
Encode image 'src' to RGF to writer 'w', while using Drawer 'render' for colorspace conversion. Render can be nil, in which case builtin Floyd-Steinberg dithering drawer will be used.
func NewImageProxy ¶
Create a new image proxy - im - image to wrap - start - crop source image to start from this point - size - crop source image to this width and height - hardlimit - whether to also crop to the 255x255 RGF limit - bt601 - whether to perform RGB -> BT.601 color conversion
Types ¶
type ImageProxy ¶
Image proxy for cropping and grayscale transformation
func (*ImageProxy) At ¶
func (proxy *ImageProxy) At(x, y int) color.Color
Return original or filtered pixel at a specific point.
func (*ImageProxy) Bounds ¶
func (proxy *ImageProxy) Bounds() image.Rectangle
Return cropped image bounds.
func (*ImageProxy) ColorModel ¶
func (proxy *ImageProxy) ColorModel() color.Model
Return original or filtered color model.