Documentation ¶
Overview ¶
Package rgb provides RGB image which implements image.Image interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ColorModel = color.ModelFunc(rgbModel)
ColorModel is RGB color model instance
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { // Pix holds the image's stream, in R, G, B order. Pix []uint8 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
Image represent image data which has RGB colors. Image is compatible with image.RGBA, but does not have alpha channel to reduce using memory.
func (*Image) ColorModel ¶
ColorModel returns RGB color model.
Click to show internal directories.
Click to hide internal directories.