Hosted by
|
package body Gray_Images is
function Darker
(A, B : in Gray_Pixel)
return Boolean
is
use type Gray_Pixel;
Int_A : Integer := Integer(A);
Int_B : Integer := Integer(B);
begin
if Int_A < 0 then
Int_A := Int_A + 256;
end if;
if Int_B < 0 then
Int_B := Int_B + 256;
end if;
return Int_A < Int_B;
end Darker;
procedure Fill
(This : access Gray_Image;
Color : in Gray_Pixel) is
begin
This.Pixels := (others => (others => 255));
end Fill;
end Gray_Images;
|