source: trunk/Packages/FastGraphics/ColorFormats/UColorRGB565.pas

Last change on this file was 26, checked in by chronos, 8 years ago
File size: 457 bytes
Line 
1unit UColorRGB565;
2
3{$mode delphi}
4
5interface
6
7uses
8 Classes, SysUtils, Graphics, UGGraphics, UFGraphics;
9
10type
11 { TColorFormatRGB565 }
12
13 TColorFormatRGB565 = class(TColorFormat)
14 constructor Create; override;
15 end;
16
17
18implementation
19
20{ TColorFormatRGB565 }
21
22constructor TColorFormatRGB565.Create;
23begin
24 inherited;
25 BitDepth := 16;
26 Name := 'RGB565';
27 AddChannel('Red', 0, 5);
28 AddChannel('Green', 5, 6);
29 AddChannel('Blue', 9, 5);
30end;
31
32end.
33
Note: See TracBrowser for help on using the repository browser.