2013-04-10 16:19:29 -07:00
|
|
|
package Bitmap_Store is
|
|
|
|
|
type Luminance is mod 2**8;
|
|
|
|
|
type Pixel is record
|
2017-09-23 10:01:46 +02:00
|
|
|
R, G, B : Luminance := Luminance'First;
|
2013-04-10 16:19:29 -07:00
|
|
|
end record;
|
2017-09-23 10:01:46 +02:00
|
|
|
Black : constant Pixel := (others => Luminance'First);
|
|
|
|
|
White : constant Pixel := (others => Luminance'Last);
|
2013-04-10 16:19:29 -07:00
|
|
|
type Image is array (Positive range <>, Positive range <>) of Pixel;
|
|
|
|
|
|
|
|
|
|
procedure Fill (Picture : in out Image; Color : Pixel);
|
|
|
|
|
|
|
|
|
|
procedure Print (Picture : Image);
|
|
|
|
|
|
|
|
|
|
type Point is record
|
|
|
|
|
X, Y : Positive;
|
|
|
|
|
end record;
|
|
|
|
|
end Bitmap_Store;
|