Есть ли прога, которая умеет работать с альфа каналом в 32bit bmp?

0000

Вообщем которая умеет сохранять данные в Reserved-слой (32bit = по 8 бит на красный, синий, голубой и резервный).
Наверно фотошоп может, тока под рукой его нет и рад одной проверки ставить не хоцца.

danilov

А обязательно bmp?
В смысле, у тебя есть тула, которая из него что-то читает?

0000

Я сам собираюсь в своей проге читать

danilov

Почему бы тогда не выбрать формат с альфа-каналом?

0000

Потому что я ленивый и разбираться как работают библиотеки формата png или gif не хоцца.

yolki

есть у меня такая прога: AlphaHlp

AlphaHlp v2.2 Usage:

To convert from one format to another:
alphahlp -f(ext) -c(ext) from_filename to_filename

To split a 32bpp image into a 24bpp image and an 8bpp image:
alphahlp -f(ext) -s 32bpp_filename 24bpp_filename 8bpp_filename
To join a 24bpp image and an 8bpp image to form a 32bpp image:
alphahlp -f(ext) -j 24bpp_filename 8bpp_filename 32bpp_filename

To split a multipage image into one singlepage file per page:
alphahlp -f(ext) -m multipage_filename file_prefix file_suffix
To append a singlepage image to a multipage image:
alphahlp -f(ext) -a multipage_filename singlepage_filename

To split a tiled image into one smaller image per tile:
alphahlp -f(ext) -t -w# -h# tiled_filename file_prefix file_suffix
To insert a single tile into a tiled image:
alphahlp -f(ext) -i -w# -h# -c# tiled_filename singletile_filename

More details:
alphahlp -?

U:\setups\Icons>alphahlp.exe -?

(ext) must be one of png, tga, tif, bmp, or ico
Multipage images can mean multiple images in a single file like tiffs,
multiple image sizes and color depths like icons, or even animations.
For -m the files created will be named with the prefix and suffix around
the string (page#)-(width)x(height)-(bpp)
For -t the string is just (page#)
-w# -h# specify the width and height of a single tile from the larger image
For -i the -c# parameter specifies the maximum number of tile columns.
Specify -c0 for infinite, thus placing all tiles on the first row.
-c# only prevents the larger image from getting wider by making it
taller instead, if no blank spot on the bottom row can be found. A tile
could still be inserted on the last row but past the -c# tvalue if the
larger image was already wide enough.

нужна? Может, исходники где-то валяются.

0000

Не, мне хоцца чтобы рисовать на background и когда сохраняю bmp - бэк сохранялся в reserved. Вообщем я туда маску хочу сохранять.

yolki

фигли, сохраняй. какие траблы? с этой прогой конверти в png, чтобы показывалось браузерами, например..
прога умеет объединять картинку 24bpp с картинкой 8bpp
Оставить комментарий
Имя или ник:
Комментарий: