Browse Source

+ all common defintions are now included into bmpcomn unit

mazen 22 years ago
parent
commit
c541fe7a26
1 changed files with 55 additions and 0 deletions
  1. 55 0
      fcl/image/bmpcomn.pp

+ 55 - 0
fcl/image/bmpcomn.pp

@@ -0,0 +1,55 @@
+{
+    $Id$
+    This file is part of the Free Pascal run time library.
+    Copyright (c) 2003 by the Free Pascal development team
+
+    PNG reader/writer common code.
+    
+    See the file COPYING.FPC, included in this distribution,
+    for details about the copyright.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ **********************************************************************}
+{$mode objfpc}{$h+}
+unit BMPcomn;
+
+interface
+
+const
+{BMP magic word is always 19778 : 'BM'}
+  BMmagic=19778;
+type
+
+   TBitMapFileHeader = record
+{File type}
+      bfType:word;
+{File size in bytes}
+      bfSize:longint;
+      bfReserved:longint;
+{Offset of image data}
+      bfOffset:longint;
+   end;
+
+   TBitMapInfoHeader = record
+      Size:longint;
+      Width:longint;
+      Height:longint;
+      Planes:word;
+      BitCount:word;
+      Compression:longint;
+      SizeImage:longint;
+      XPelsPerMeter:Longint;
+      YPelsPerMeter:Longint;
+      ClrUsed:longint;
+      ClrImportant:longint;
+   end;
+  
+    TColorRGB=packed record
+      B,G,R:Byte;
+    end;
+implementation
+
+end.