Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BMP ¶
type BMP struct { Head BMPHead Info BMPInfo ColorTable []BMPColorTable Data []byte }
BMP ...
type BMPColorTable ¶
BMPColorTable 4B
type BMPHead ¶
type BMPHead struct { Type [2]byte //2B type:BM(default) Size uint32 //4B bmp file size R1 uint16 //2B reserve R2 uint16 //2B reserve Offset uint32 //4B start address }
BMPHead 14B
type BMPInfo ¶
type BMPInfo struct { Size uint32 //4B struct size Width int32 //4B horizontal width of bitmap in pixels Height int32 //4B vertical height of bitmap in pixels Planes uint16 //2B number of planes BitPerPixel uint16 //2B 1,4,8,16,24---- Compression uint32 //4B 0 no compression, 1 8bit RLE encoding, 2 4bit RLE encoding ImageSize uint32 //4B siez of image if Compression =0 it is valid to set 0 XpixelsPerM uint32 //4B horizontal resolution:pixels/meter YpixelsPerM uint32 //4B vertical resolution ColorUsed uint32 //4B number of actually used colors ImportantColors uint32 //4B }
BMPInfo 40B
Click to show internal directories.
Click to hide internal directories.