Versions in this module Expand all Collapse all v1 v1.1.1 May 8, 2023 v1.1.0 Jun 30, 2022 v1.0.0 Jun 14, 2022 Changes in this version + const BlockHeight + const BlockWidth + func MakeRect(x, y, width, height int) image.Rectangle + func MakeRectFromVncRect(rect *rfb.Rectangle) image.Rectangle + type RGBColor struct + B uint8 + G uint8 + R uint8 + func (that RGBColor) RGBA() (r, g, b, a uint32) + type RGBImage struct + Pix []uint8 + Rect image.Rectangle + Stride int + func NewRGBImage(r image.Rectangle) *RGBImage + func (that *RGBImage) PixOffset(x, y int) int + func (that *RGBImage) RGBAt(x, y int) *RGBColor + func (that *RGBImage) SetRGB(x, y int, c color.RGBA) + func (that RGBImage) At(x, y int) color.Color + func (that RGBImage) Bounds() image.Rectangle + func (that RGBImage) ColorModel() color.Model + func (that RGBImage) Set(x, y int, c color.Color) + type VncCanvas struct + Changed map[string]bool + Cursor draw.Image + CursorBackup draw.Image + CursorLocation *image.Point + CursorMask [][]bool + CursorOffset *image.Point + DrawCursor bool + func NewVncCanvas(width, height int) *VncCanvas + func (that *VncCanvas) Close() error + func (that *VncCanvas) DecodeRaw(reader io.Reader, pf *rfb.PixelFormat, rect *rfb.Rectangle) error + func (that *VncCanvas) FillRect(rect *image.Rectangle, c color.Color) + func (that *VncCanvas) PaintCursor() image.Image + func (that *VncCanvas) Read(buf []byte) (int, error) + func (that *VncCanvas) ReadColor(c io.Reader, pf *rfb.PixelFormat) (*color.RGBA, error) + func (that *VncCanvas) RemoveCursor() image.Image + func (that *VncCanvas) Reset(rect *rfb.Rectangle) + func (that *VncCanvas) SetChanged(rect *rfb.Rectangle) + func (that *VncCanvas) Write(buf []byte) (int, error)