Projekt

Allgemein

Profil

Feature #237

Von Maximilian Seesslen vor mehr als 2 Jahren aktualisiert

Does Biwak already support such thing? Expect the drawLine.
Set background color; Alpha-Channel would be nice.
Its not an Widget.

Like Qt: button->setIcon(QIcon("open.xpm"));
48x48x4 9216 Bytes
only alpha:
48x48x1 2304 Bytes

h2. Icons

https://www.iconfinder.com/search/icons?q=pretzel
https://www.iconfinder.com/search/icons?q=pretzel&price=free
git clone https://github.com/google/material-design-icons/

imagemagick (graphicsmagic provides GIF)

<pre><code class="shell">
#!/bin/bash

set -e -u

mkdir -p 32
for ifile in *.png; do
convert $ifile -define h:format=a -depth 1 -background white -alpha off -resize 32x32 32/${ifile%.*}.h
convert $ifile -define h:format=rgb -depth 1 -background white -alpha off -resize 32x32 32/${ifile%.*}.png
# convert $ifile -define h:format=rgb -depth 1 -background white -alpha deactivate -resize 32x32 32/${ifile%.*}.png
convert $ifile -background white -alpha remove -flatten -alpha off -depth 1 -resize 32x32 32/${ifile%.*}.png
convert 32/${ifile%.*}.png -monochrome 32/${ifile%.*}_1.png

done
</code></pre>

There is an problem with the argument order in imagemagick. The examples above only work with pngs with alpha channels, not SVGs;
This works with SVGs:
<pre><code class="shell">
convert -define h:format=a -depth 8 -background none -resize 48x48 $ifile 48/${ifile%.*}_alpha1.h
</code></pre>

Zurück