RE: About XPMmer
- Posted by Igor Kachan <kinz at peterlink.ru> Apr 08, 2006
- 493 views
Andy Drummond wrote: > > Igor, > I think a bigger problem is going to be handling the 48-bit color values > that some of your XPMs hold! I was just tossing the "#FF8000" type of > number at value() and all was well. But "#BFBFBFBFBFBF" is too much for > Euphoria to handle!! I'm not enough sure, but one of the simplest ways seems just to be:
if length(s) > 7 then -- "#BFBFBFBFBFBF" s = s[1..7] -- becomes "#BFBFBF", almost same color end if
At least for those 40 icons of that .zip, it could work. > I shall have to write my own analyser - or else > I'm sorry, you can't use these XPMs. I did not expect my reader to > cope with every possible XPM, but it would be nice to do most anyway. Just output - "Unsupported variant of XPM file format", instead of something not enough clear about problems with "value()" or such. > More thinking this weekend, I suppose!! Good Luck! Regards, Igor Kachan kinz at peterlink.ru