@echo off
rem This file is part of the Skin Generator, Copyright (c) 2004 Alexander R. Pruss
rem
rem This program is free software; you can redistribute it and/or
rem modify it under the terms of the GNU General Public License
rem as published by the Free Software Foundation; either version 2
rem of the License, or (at your option) any later version.
rem
rem This program is distributed in the hope that it will be useful,
rem but WITHOUT ANY WARRANTY; without even the implied warranty of
rem MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
rem GNU General Public License for more details.
rem
rem You should have received a copy of the GNU General Public License
rem along with this program; if not, write to the Free Software
rem Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
if not %3!==! goto run
echo Generate full color statusbar skin from 320x160 24-bit .bmp files that
echo provide a full graffiti/statusbar area.
echo Usage:
echo  graffiti16 image1.bmp image2.bmp outname
echo image1.bmp = unselected buttons version
echo image2.bmp = selected buttons version
goto done
:run
convert +compress  -crop 320x130+0+0 "%1" temp/image1000-16.bmp
convert +compress  -crop 16x16+54+112 "%1" temp/image1200-16.bmp
convert +compress  -crop 16x16+54+112 "%2" temp/image1300-16.bmp
convert +compress  -crop 16x16+250+112 "%1" temp/image1400-16.bmp
convert +compress  -crop 16x16+250+112 "%2" temp/image1500-16.bmp
convert +compress  -crop 40x42+6+8 "%1" temp/image1600-16.bmp
convert +compress  -crop 40x42+6+8 "%2" temp/image1700-16.bmp
convert +compress  -crop 40x42+6+64 "%1" temp/image1800-16.bmp
convert +compress  -crop 40x42+6+64 "%2" temp/image1900-16.bmp
convert +compress  -crop 40x42+274+8 "%1" temp/image2000-16.bmp
convert +compress  -crop 40x42+274+8 "%2" temp/image2100-16.bmp
convert +compress  -crop 40x42+274+64 "%1" temp/image2200-16.bmp
convert +compress  -crop 40x42+274+64 "%2" temp/image2300-16.bmp
convert +compress  -crop 14x14+18+114 "%1" temp/image2400-16.bmp
convert +compress  -crop 14x14+18+114 "%2" temp/image2500-16.bmp
convert +compress  -crop 28x16+282+112 "%1" temp/image2600-16.bmp
convert +compress  -crop 28x16+282+112 "%2" temp/image2700-16.bmp
mkdir temp
cd temp
..\bin\pilrc -SonySkin -LE32 "../rcp/graffiti16.rcp"
..\bin\toprc -s "../%3.prc" "%3" sknG SkAi abmp03e8.bin abmp04b0.bin abmp0514.bin abmp0578.bin abmp05dc.bin abmp0640.bin abmp06a4.bin abmp0708.bin abmp076c.bin abmp07d0.bin abmp0834.bin abmp0898.bin abmp08fc.bin abmp0960.bin abmp09c4.bin abmp0a28.bin abmp0a8c.bin
del *.bin
del *.bmp
cd ..
:done

