Documentation ¶
Overview ¶
Package image14bit implements 14-bit per pixel images.
It is compatible with the image/draw package.
Index ¶
- Variables
- type Gray14
- func (i *Gray14) At(x, y int) color.Color
- func (i *Gray14) Bounds() image.Rectangle
- func (i *Gray14) ColorModel() color.Model
- func (i *Gray14) Intensity14At(x, y int) Intensity14
- func (i *Gray14) Opaque() bool
- func (i *Gray14) PixOffset(x, y int) int
- func (i *Gray14) Set(x, y int, c color.Color)
- func (i *Gray14) SetIntensity14(x, y int, c Intensity14)
- type Intensity14
Constants ¶
This section is empty.
Variables ¶
View Source
var Intensity14Model = color.ModelFunc(convert)
Intensity14Model is the color Model for 14-bit grayscale.
Functions ¶
This section is empty.
Types ¶
type Gray14 ¶
type Gray14 struct { // Pix holds the image's pixels. Each uint16 element represents one 14-bit // pixel. Pix []uint16 // Stride is the Pix stride (in pixels) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
Gray14 represents an image of 14-bit values.
func (*Gray14) ColorModel ¶
ColorModel implements image.Image.
func (*Gray14) Intensity14At ¶
func (i *Gray14) Intensity14At(x, y int) Intensity14
Intensity14At returns the Intensity14 value at a point.
func (*Gray14) PixOffset ¶
PixOffset returns the index of the element of Pix that corresponds to the pixel at (x, y).
func (*Gray14) SetIntensity14 ¶
func (i *Gray14) SetIntensity14(x, y int, c Intensity14)
SetIntensity14 sets the Intensity14 value for the pixel at (x, y).
type Intensity14 ¶
type Intensity14 uint16
Intensity14 is a 14-bit grayscale implementation of color.Color.
Valid range is between 0 and 16383 (inclusive).
func (Intensity14) RGBA ¶
func (g Intensity14) RGBA() (uint32, uint32, uint32, uint32)
RGBA returns a grayscale result.
func (Intensity14) String ¶
func (g Intensity14) String() string
Click to show internal directories.
Click to hide internal directories.