Line | |
---|
1 | unit UColorRGBA8;
|
---|
2 |
|
---|
3 | {$mode delphi}
|
---|
4 |
|
---|
5 | interface
|
---|
6 |
|
---|
7 | uses
|
---|
8 | Classes, SysUtils, Graphics, UGGraphics, UFGraphics;
|
---|
9 |
|
---|
10 | type
|
---|
11 | { TColorFormatRGBA8 }
|
---|
12 |
|
---|
13 | TColorFormatRGBA8 = class(TColorFormat)
|
---|
14 | constructor Create; override;
|
---|
15 | end;
|
---|
16 |
|
---|
17 |
|
---|
18 | implementation
|
---|
19 |
|
---|
20 | { TColorFormatRGBA8 }
|
---|
21 |
|
---|
22 | constructor TColorFormatRGBA8.Create;
|
---|
23 | begin
|
---|
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);
|
---|
31 | end;
|
---|
32 |
|
---|
33 | end.
|
---|
34 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.