Subversion Repositories Kolibri OS

Rev

Rev 717 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 717 Rev 999
Line 1... Line 1...
1
;;================================================================================================;;
1
;;================================================================================================;;
2
;;//// bmp.inc //// (c) mike.dld, 2007-2008 //////////////////////////////////////////////////////;;
2
;;//// bmp.inc //// (c) mike.dld, 2007-2008, (c) diamond, 2009 ///////////////////////////////////;;
3
;;================================================================================================;;
3
;;================================================================================================;;
4
;;                                                                                                ;;
4
;;                                                                                                ;;
5
;; This file is part of Common development libraries (Libs-Dev).                                  ;;
5
;; This file is part of Common development libraries (Libs-Dev).                                  ;;
6
;;                                                                                                ;;
6
;;                                                                                                ;;
7
;; Libs-Dev is free software: you can redistribute it and/or modify it under the terms of the GNU ;;
7
;; Libs-Dev is free software: you can redistribute it and/or modify it under the terms of the GNU ;;
8
;; General Public License as published by the Free Software Foundation, either version 3 of the   ;;
8
;; Lesser General Public License as published by the Free Software Foundation, either version 2.1 ;;
9
;; License, or (at your option) any later version.                                                ;;
9
;; of the License, or (at your option) any later version.                                         ;;
10
;;                                                                                                ;;
10
;;                                                                                                ;;
11
;; Libs-Dev is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without  ;;
11
;; Libs-Dev is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without  ;;
12
;; even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU  ;;
12
;; even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU  ;;
13
;; General Public License for more details.                                                       ;;
13
;; Lesser General Public License for more details.                                                ;;
14
;;                                                                                                ;;
14
;;                                                                                                ;;
15
;; You should have received a copy of the GNU General Public License along with Libs-Dev. If not, ;;
15
;; You should have received a copy of the GNU Lesser General Public License along with Libs-Dev.  ;;
16
;; see .                                                            ;;
16
;; If not, see .                                                    ;;
17
;;                                                                                                ;;
17
;;                                                                                                ;;
18
;;================================================================================================;;
18
;;================================================================================================;;
Line 19... Line 19...
19
 
19
 
Line 26... Line 26...
26
ends
26
ends
Line 27... Line 27...
27
 
27
 
28
struct bmp.InfoHeader
28
struct bmp.InfoHeader
29
; v2 (Windows 2.x)
29
; v2 (Windows 2.x)
-
 
30
  Size		 dd ? ; Size of this header in bytes
-
 
31
  union
30
  Size		 dd ? ; Size of this header in bytes
32
    struct ; new format
31
  Width 	 dd ? ; Image width in pixels
33
      Width 	 dd ? ; Image width in pixels
32
  Height	 dd ? ; Image height in pixels
34
      Height	 dd ? ; Image height in pixels
33
  Planes	 dw ? ; Number of color planes
35
      Planes	 dw ? ; Number of color planes
-
 
36
      BitCount	 dw ? ; Number of bits per pixel
-
 
37
    ends
-
 
38
    struct ; old format
-
 
39
      OldWidth   dw ? ; Image width in pixels as word
-
 
40
      OldHeight  dw ? ; Image height in pixels as word
-
 
41
      OldPlanes  dw ? ; Number of color planes
-
 
42
      OldBitCount dw ? ; Number of bits per pixel
-
 
43
    ends
34
  BitCount	 dw ? ; Number of bits per pixel
44
  ends
35
; v3 (Windows 3.x)
45
; v3 (Windows 3.x)
36
  Compression	 dd ? ; Compression method used
46
  Compression	 dd ? ; Compression method used
37
  SizeImage	 dd ? ; Size of bitmap in bytes
47
  SizeImage	 dd ? ; Size of bitmap in bytes
38
  XPelsPerMeter  dd ? ; Horizontal resolution in pixels per meter
48
  XPelsPerMeter  dd ? ; Horizontal resolution in pixels per meter