Вниз
Скачать: CL | DM;

Форматы иконки   Найти похожие ветки 

 
sco ©   (2006-03-19 14:41) [0]

Как узнать все форматы иконки какого то файла, ну к примеру 1.ico:
 48x48 32bit
 32x32 32bit
 16x16 32bit
 48x48 256
 32x32 256
 16x16 256
Как получить такую информацию?


 
Poirot ©   (2006-03-22 18:28) [1]

http://kainsk.tomsk.ru/g2003/sys26/oswin.htm


 
VadMat   (2006-07-05 14:09) [2]

Предлагаю такой способ:

procedure TForm1.Button1Click(Sender: TObject);
var
fb:File of Byte;
bWidthHeight,bColorBit,bIconCount:Byte;
iIconNumber:Integer;
begin
AssignFile(fb,Edit1.Text);
Reset(fb);
iIconNumber:=0;
ListBox1.Items.Clear;
Seek(fb,4);
Read(fb,bIconCount);
repeat
Seek(fb,iIconNumber+6);
Read(fb,bWidthHeight);
Seek(fb,iIconNumber+12);
Read(fb,bColorBit);
ListBox1.Items.Add(IntToStr(bWidthHeight)+"x"+IntToStr(bWidthHeight)+", "+IntToStr(Trunc(Exp(bColorBit*Ln(2))))+" color");
iIconNumber:=iIconNumber+16;
Seek(fb,iIconNumber);
until (iIconNumber=(bIconCount)*16);
CloseFile(fb);
end;

У меня работает.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.026 c
15-1171030647
clickmaker
2007-02-09 17:17
2007.03.04
patch.exe для win32


2-1171285376
VitAngel
2007-02-12 16:02
2007.03.04
Архивация с помощью ShellExecute


3-1165832104
dest
2006-12-11 13:15
2007.03.04
Insufficient memory for this operation


2-1171526671
vitv
2007-02-15 11:04
2007.03.04
Проблема выборки большого числа записей(100 000).


15-1171270823
Riply
2007-02-12 12:00
2007.03.04
Новый винчестер.




   Наверх