wudsn-ide/com.wudsn.ide.ref/GFX/Suite/Logo.bmp-hex.cnv
2018-12-30 16:52:33 +01:00

51 lines
3.5 KiB
Plaintext

#WUDSN IDE Converter Parameters
#Wed Aug 08 19:53:47 CEST 2012
converterDirection=IMAGE_TO_FILES
filesConverterParameters.converterId=com.wudsn.ide.gfx.converter.atari8bit.LinearBitMapGraphics8Converter
filesConverterParameters.imageAspect.factorX=1
filesConverterParameters.imageAspect.factorY=1
filesConverterParameters.displayAspect.factorX=1
filesConverterParameters.displayAspect.factorY=1
filesConverterParameters.displayShrinkToFit=false
filesConverterParameters.displayZoomToFit=true
filesConverterParameters.sourceFiles=1
filesConverterParameters.sourceFiles.0.path=
filesConverterParameters.sourceFiles.0.offset=0
filesConverterParameters.imageFilePath=
filesConverterParameters.columns=40
filesConverterParameters.rows=24
filesConverterParameters.spacingColor.red=0
filesConverterParameters.spacingColor.green=0
filesConverterParameters.spacingColor.blue=128
filesConverterParameters.spacingWidth=0
filesConverterParameters.palette=HIRES_1
filesConverterParameters.paletteType=ATARI_DEFAULT
filesConverterParameters.paletteRGBs=2
filesConverterParameters.paletteRGBs.0.red=0
filesConverterParameters.paletteRGBs.0.green=0
filesConverterParameters.paletteRGBs.0.blue=0
filesConverterParameters.paletteRGBs.1.red=255
filesConverterParameters.paletteRGBs.1.green=255
filesConverterParameters.paletteRGBs.1.blue=255
imageConverterParameters.converterId=com.wudsn.ide.gfx.converter.atari8bit.LinearBitMapGraphics8Converter
imageConverterParameters.imageAspect.factorX=1
imageConverterParameters.imageAspect.factorY=1
imageConverterParameters.displayAspect.factorX=1
imageConverterParameters.displayAspect.factorY=1
imageConverterParameters.displayShrinkToFit=false
imageConverterParameters.displayZoomToFit=true
imageConverterParameters.imageFilePath=Logo.bmp
imageConverterParameters.targetFiles=10
imageConverterParameters.targetFiles.0.path=Logo.hex
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=false
imageConverterParameters.script=function convertToFileData(data) {\r\n\tvar bpsl \= (data.getImageDataWidth() + 7) / 8;\r\n var digits \= "0123456789abcdef"\r\n\tvar bytes \= []\r\n\tvar offset \= 0;\r\n\tfor (var y \= 0; y < data.getImageDataHeight(); y++) {\r\n// ".BYTE"\r\n bytes[offset++] \= 9;\r\n bytes[offset++] \= 46;\r\n bytes[offset++] \= 66;\r\n bytes[offset++] \= 89;\r\n bytes[offset++] \= 84;\r\n bytes[offset++] \= 69;\r\n bytes[offset++] \= 32;\r\n\t for (var x \= 0; x < data.getImageDataWidth(); x \= x + 8) {\r\n\t\t\tvar b \= 0;\r\n\t\t\tfor (var p \= 0; p < 8; p++) {\r\n\t\t\t var color;\r\n\t\t\t color \= data.getPixel(x + p, y);\r\n\t\t\t if (color \!\= 0) {\r\n\t\t\t\t\tb \= b | 1 << 7 - p;\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\tbytes[offset++] \= digits.charCodeAt(b&15);\r\n\t\t\tbytes[offset++] \= digits.charCodeAt((b>>>4)&15);\r\n\t\t\tif (x + 8 < data.getImageDataWidth()){\r\n\t\t\t\tbytes[offset++] \= 44;\r\n\t\t\t} \r\n\t }\r\n bytes[offset++] \= 13;\r\n bytes[offset++] \= 10;\r\n\t}\r\n\tdata.setTargetFileObject(0, bytes);\r\n}