[Oberon] FPGA - Pictures.Mod composition
Bob Walkden
bob at web-options.com
Tue Sep 26 20:36:35 CEST 2017
A bitmap represents a picture. There are many other possible representations of the same picture .
> On 26 Sep 2017, at 19:25, Tomas Kral <thomas.kral at email.cz> wrote:
>
> Hi,
>
> Looking at these two structures, I am scratching my head, is a
> picture `kind of' bitmap, or `makes use of' bitmap, as we repeat
> fields: width, height, depth, and base, while only adding colour table?
>
> TYPE
> Bitmap* = POINTER TO BitmapDesc;
> BitmapDesc* = RECORD
> width*, height*, depth*: INTEGER;
> base*: INTEGER;
> size*: INTEGER
> END;
>
> TYPE
> Picture* = POINTER TO PictureDesc;
> PictureDesc* = RECORD
> width*, height*, depth*: INTEGER;
> bitmap: Bitmaps.Bitmap;
> base: INTEGER;
> ct: ColorTable
> END;
>
> Should we not just extend it?
>
> TYPE
> PictureDesc* = RECORD (Bitmaps)
> ct: ColorTable
> END;
>
> --
> Tomas Kral <thomas.kral at email.cz>
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
More information about the Oberon
mailing list