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

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