summaryrefslogtreecommitdiff
path: root/images
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graeme@mastermaths.co.za>2009-05-08 15:45:25 +0200
committerGraeme Geldenhuys <graeme@mastermaths.co.za>2009-05-08 15:45:25 +0200
commita6ee4cbdee2577552afb6f68b89b5abb776066d7 (patch)
tree98b11441c44db90c72f5a9d22c6d98d79a69d57c /images
parent25e9e424d87e8c10eb6104ca391ca28998cde678 (diff)
downloadfpGUI-a6ee4cbdee2577552afb6f68b89b5abb776066d7.tar.xz
Updated the 'updatestdimgs.pas' unit and removed unused units form tiLogToGUI uses clause.
Diffstat (limited to 'images')
-rw-r--r--images/updatestdimgs.pas35
1 files changed, 34 insertions, 1 deletions
diff --git a/images/updatestdimgs.pas b/images/updatestdimgs.pas
index bd3ef8bc..339ef1c9 100644
--- a/images/updatestdimgs.pas
+++ b/images/updatestdimgs.pas
@@ -1,6 +1,39 @@
{
This program searches for *.bmp files in the current directory and
outputs to stdout the bmp files found as byte array constants.
+
+ Here are a few usage examples:
+
+ 1)
+ ./updatestdimgs > ../src/corelib/stdimages.inc
+
+ This takes whatever .bmp file are in the current directory. Creates
+ byte array constants and outputs them to an include file.
+
+
+ 2)
+ ./updatestdimgs -v -u myimages -m 0,0 -p myapp > /tmp/myimages.pas
+
+ This takes all .bmp images in current directory. (-v) Produces
+ verbose output at images are processed. (-u) generate a complete
+ unit for the images including registration code. (-m) if the images
+ have a transparency mask, what pixel should be used by default as
+ the transparency color. (-p) Use the "myapp" as the prefix to all
+ image constants. And lastly take all the stdout output and pipe it
+ into a file called myimages.pas
+
+ PS:
+ -o for the output file parameter still has some bugs, so I would
+ suggest you use piping (.... > outfile.inc) instead.
+
+
+ 3)
+ ./updatestdimgs -v -i themes/silver/ > /tmp/mysilvertheme.inc
+
+ This takes all .bmp files in the themes/silver/ directory and generates
+ byte array constants using the default "usr" prefix and outputs to
+ stdout. We then pipe the output to mysilvertheme.inc file.
+
}
program updatestdimgs;
@@ -148,7 +181,7 @@ type
'{$mode objfpc}{$H+}' +LineEnding+LineEnding+
'interface' +LineEnding+LineEnding+
'uses' +LineEnding+
- ' fpgfx;' +LineEnding+LineEnding+
+ ' fpg_main;' +LineEnding+LineEnding+
'procedure InitializeCustomImages;'+LineEnding+LineEnding+
'implementation';
AssignFile(f, FOutputFile);