#WUDSN IDE Converter Parameters
#Tue Jun 10 22:43:21 CEST 2014
converterDirection=IMAGE_TO_FILES
filesConverterParameters.converterId=
filesConverterParameters.imageAspect.factorX=2
filesConverterParameters.imageAspect.factorY=1
filesConverterParameters.displayAspect.factorX=2
filesConverterParameters.displayAspect.factorY=1
filesConverterParameters.displayShrinkToFit=false
filesConverterParameters.displayZoomToFit=true
filesConverterParameters.sourceFiles=0
filesConverterParameters.imageFilePath=
filesConverterParameters.columns=80
filesConverterParameters.rows=200
filesConverterParameters.spacingColor.red=0
filesConverterParameters.spacingColor.green=0
filesConverterParameters.spacingColor.blue=128
filesConverterParameters.spacingWidth=0
filesConverterParameters.palette=HIRES_MANUAL
filesConverterParameters.paletteType=ATARI_DEFAULT
filesConverterParameters.paletteRGBs=4
filesConverterParameters.paletteRGBs.0.red=0
filesConverterParameters.paletteRGBs.0.green=0
filesConverterParameters.paletteRGBs.0.blue=0
filesConverterParameters.paletteRGBs.1.red=85
filesConverterParameters.paletteRGBs.1.green=85
filesConverterParameters.paletteRGBs.1.blue=85
filesConverterParameters.paletteRGBs.2.red=170
filesConverterParameters.paletteRGBs.2.green=170
filesConverterParameters.paletteRGBs.2.blue=170
filesConverterParameters.paletteRGBs.3.red=255
filesConverterParameters.paletteRGBs.3.green=255
filesConverterParameters.paletteRGBs.3.blue=255
imageConverterParameters.converterId=com.wudsn.ide.gfx.converter.atari8bit.LinearBitMapGraphics15Converter
imageConverterParameters.imageAspect.factorX=2
imageConverterParameters.imageAspect.factorY=2
imageConverterParameters.displayAspect.factorX=2
imageConverterParameters.displayAspect.factorY=2
imageConverterParameters.displayShrinkToFit=false
imageConverterParameters.displayZoomToFit=false
imageConverterParameters.imageFilePath=../Image-640x400x8.png
imageConverterParameters.targetFiles=10
imageConverterParameters.targetFiles.0.path=Image-640x400.png.pic
imageConverterParameters.targetFiles.1.path=
imageConverterParameters.targetFiles.2.path=
imageConverterParameters.targetFiles.3.path=
imageConverterParameters.targetFiles.4.path=
imageConverterParameters.targetFiles.5.path=
imageConverterParameters.targetFiles.6.path=
imageConverterParameters.targetFiles.7.path=
imageConverterParameters.targetFiles.8.path=
imageConverterParameters.targetFiles.9.path=
imageConverterParameters.useDefaultScript=true
imageConverterParameters.script=function convertToFileData(data) {\r\n\tvar bpsl \= (data.getImageDataWidth() + 3) / 4;\r\n\tvar bytes \= [];\r\n\tvar offset \= 0;\r\n\tfor (var y \= 0; y < data.getImageDataHeight(); y++) {\r\n\t    for (var x \= 0; x < data.getImageDataWidth(); x \= x + 4) {\r\n\t\t\tvar c1,c2,c3,c4;\r\n\t\t\tc1 \= data.getPixel(x, y) & 0x3;\r\n\t\t\tc2 \= data.getPixel(x+1, y) & 0x3;\r\n\t\t\tc3 \= data.getPixel(x+2, y) & 0x3;\r\n\t\t\tc4 \= data.getPixel(x+3, y) & 0x3;\r\n\t\t\tbytes[offset++] \= c1 << 6 | c2 << 4 | c3 << 2 | c4; \r\n\t    }\r\n\t}\r\n\tdata.setTargetFileObject(0, bytes);\r\n}
