Documentation ¶
Index ¶
- Constants
- func MakeRect(x, y, width, height int) image.Rectangle
- func MakeRectFromVncRect(rect *rfb.Rectangle) image.Rectangle
- type RGBColor
- type RGBImage
- func (that RGBImage) At(x, y int) color.Color
- func (that RGBImage) Bounds() image.Rectangle
- func (that RGBImage) ColorModel() color.Model
- func (that *RGBImage) PixOffset(x, y int) int
- func (that *RGBImage) RGBAt(x, y int) *RGBColor
- func (that RGBImage) Set(x, y int, c color.Color)
- func (that *RGBImage) SetRGB(x, y int, c color.RGBA)
- type 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)
Constants ¶
View Source
const ( BlockWidth = 16 BlockHeight = 16 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RGBImage ¶
type RGBImage struct { // Pix holds the image's pixels, in R, G, B, A order. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*3]. Pix []uint8 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
func NewRGBImage ¶
func (RGBImage) ColorModel ¶
type VncCanvas ¶
type VncCanvas struct { draw.Image Cursor draw.Image CursorMask [][]bool CursorBackup draw.Image CursorOffset *image.Point CursorLocation *image.Point DrawCursor bool Changed map[string]bool // contains filtered or unexported fields }
func NewVncCanvas ¶
func (*VncCanvas) PaintCursor ¶
func (*VncCanvas) RemoveCursor ¶
func (*VncCanvas) SetChanged ¶
Click to show internal directories.
Click to hide internal directories.