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