Tag Info

New answers tagged

1

Using ImageMagick, based on rlogo_icon.h. #!/bin/sh echo 'unsigned long rlogo_icon[] = {' identify -format '%w, %h,' $1 convert $1 -color-matrix '0 0 1 0, 0 1 0 0, 1 0 0 0, 0 0 0 1' RGBA:- | hexdump -v -e '1/4 "0x%08x,\n"' echo '};' Usage: ./script.sh rlogo_icon.png > rlogo_icon.h I'm not sure this -color-matrix is always correct. I placed bytes in ...



Top 50 recent answers are included