summaryrefslogtreecommitdiff
path: root/src/fltk-images-rgb-png.ads
blob: a4c270aab61870ac94084f9d7aeacee1696419df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46


package FLTK.Images.RGB.PNG is


    -------------
    --  Types  --
    -------------

    type PNG_Image is new RGB_Image with private;

    type PNG_Image_Reference (Data : not null access PNG_Image'Class) is limited null record
        with Implicit_Dereference => Data;




    --------------------
    --  Construction  --
    --------------------

    package Forge is

        function Create
               (Filename : in String)
            return PNG_Image;

        function Create
               (Name : in String := "";
                Data : in Color_Component_Array)
            return PNG_Image;

    end Forge;


private


    type PNG_Image is new RGB_Image with null record;

    overriding procedure Finalize
           (This : in out PNG_Image);


end FLTK.Images.RGB.PNG;