github.com/as/shiny@v0.8.2/driver/win32/bitmap.go (about) 1 package win32 2 3 const ( 4 BiRGB = 0 5 BiBitfields = 3 6 DibRGBColors = 0 7 AcSrcOver = 0x00 8 AcSrcAlpha = 0x01 9 SrcCopy = 0x00cc0020 10 ) 11 const ( 12 GmCompatible = 1 13 GmAdvanced = 2 14 MWTIdentity = 1 15 ) 16 17 type BitmapInfo struct { 18 Header BitmapInfoV4 19 Colors [1]RGBQuad 20 } 21 22 type BitmapInfoV4 struct { 23 Size uint32 24 Width int32 25 Height int32 26 Planes uint16 27 BitCount uint16 28 Compression uint32 29 SizeImage uint32 30 XPelsPerMeter int32 31 YPelsPerMeter int32 32 ClrUsed uint32 33 ClrImportant uint32 34 Red, Green, Blue, Alpha uint32 35 Endpoints [3]uint32 36 Gamma [3]uint32 37 } 38 39 type BitmapInfoHeader struct { 40 Size uint32 41 Width int32 42 Height int32 43 Planes uint16 44 BitCount uint16 45 Compression uint32 46 SizeImage uint32 47 XPelsPerMeter int32 48 YPelsPerMeter int32 49 ClrUsed uint32 50 ClrImportant uint32 51 }