[exerb-dev:0552] Re: 特定の色数やサイズのアイコンを埋め込むことができない

Back to archive index

Masahiro Kitajima katon****@katon*****
2010年 2月 15日 (月) 23:13:35 JST


 添付のパッチで、かなりの種類のアイコンを扱えるようになると思い
ますが、256x256 サイズのアイコンについては、フォーマットがまだよ
くわかっていないので、対応できていません。

 ICONDIRENTRY 構造体の bWidth、bHeight が 0 の場合が 256x256 サ
イズらしいのですが、その時 dwImageOffset が指す場所に、
BITMAPINFOHEADER があると思って読むと、他のサイズのアイコンの場合
とは違った内容なので困っています。

> typedef struct
> {
>     BYTE        bWidth;          // Width, in pixels, of the image
>     BYTE        bHeight;         // Height, in pixels, of the image
>     BYTE        bColorCount;     // Number of colors in image (0 if >=8bpp)
>     BYTE        bReserved;       // Reserved ( must be 0)
>     WORD        wPlanes;         // Color Planes
>     WORD        wBitCount;       // Bits per pixel
>     DWORD       dwBytesInRes;    // How many bytes in this resource?
>     DWORD       dwImageOffset;   // Where in the file is this image?
> } ICONDIRENTRY, *LPICONDIRENTRY;

-- 
北島雅博(かとんぼ)
-------------- next part --------------
テキスト形式以外の添付ファイルを保管しました...
ファイル名: exerb.patch
型:         application/octet-stream
サイズ:     3725 バイト
説明:       無し
下載 



exerb-developer メーリングリストの案内
Back to archive index