[fpc-pascal] Bitmap-as-const-and-write-to-file-thingy

Marc Santhoff M.Santhoff at web.de
Fri Sep 21 00:27:28 CEST 2018


On Thu, 2018-09-20 at 00:47 +0200, Tomas Hajny wrote:
> On Wed, September 19, 2018 23:58, Marc Santhoff wrote:
> 
> 
> Hi,
> 
>  .
>  .
> > What I need:
> > 
> > - A program taking a binary file and spitting out pascal code for the
> > const array. I know I have seen such program in the past, but do not know
> > where.
> 
> data2inc is included with FPC.

FPC is amazing! Batteries included. :)

> > - Some hints on using this constant for making files out of them.
> > Currently I'm plannig to use a TFileStreaam writing out Bytes, should do.
> 
> Indeed, should do; simple file of byte and BlockWrite should do as well.

I'll try soon,

Thank you very much.

-- 
Marc Santhoff <M.Santhoff at web.de>



More information about the fpc-pascal mailing list