Documentation
¶
Overview ¶
Package dib decodes the shared Windows DIB pixel representation used by BMP and ICO. Container headers, icon selection and icon AND masks live elsewhere.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeConfig ¶ added in v0.5.5
DecodeConfig reads the DIB header, masks and indexed palette using the same validation as Decode. It never reads or allocates decoded raster data.
Types ¶
type Options ¶
type Options struct {
// PixelOffset is relative to the beginning of the DIB. Zero means pixels
// immediately follow the header, masks and palette (packed DIBs in ICO).
PixelOffset int
// IconSize requests ICO's positive doubled header height and legacy BGRA
// interpretation of BI_RGB/32. A zero point means an ordinary bitmap.
IconSize image.Point
}
Options makes container-specific interpretation explicit.
Click to show internal directories.
Click to hide internal directories.