Board index » delphi » saving highcolor icons (>16 colors)
lord...@hotmail.com (Lord Crc)
![]() Delphi Developer |
Fri, 15 Nov 2002 03:00:00 GMT
|
lord...@hotmail.com (Lord Crc)
![]() Delphi Developer |
Fri, 15 Nov 2002 03:00:00 GMT
saving highcolor icons (>16 colors)
Hi
Im trying to save some highcolored icons. I get them from Now, no matter how i try to use the TIcon object, they turn out to be - Asbj?rn |
Earl F. Glyn
![]() Delphi Developer |
Fri, 15 Nov 2002 03:00:00 GMT
Re:saving highcolor icons (>16 colors)Quote"Lord Crc" <lord...@hotmail.com> wrote in message news:3932f164.41839046@forums.inprise.com... reproduce your problem? -- Earl F. Glynn E-mail: EarlGl...@att.net efg's Computer Lab: http://www.efg2.com/Lab |
DPR
![]() Delphi Developer |
Sat, 16 Nov 2002 03:00:00 GMT
Re:saving highcolor icons (>16 colors)That sounds strange. I don't have any problem loading or saving high-color icons. Besides, I'm actually working on an icon-unit with which it is able to deal Bye, DPR |
Colin Wilso
![]() Delphi Developer |
Sat, 16 Nov 2002 03:00:00 GMT
Re:saving highcolor icons (>16 colors)QuoteIn article <3932f164.41839...@forums.inprise.com>, Lord Crc wrote: * Icon files (.ICO) can contain several separate images at different * Seeing as Delphi only ever loads a single image from your .ICO file * And SaveToFile can only write 16 color icons, anyway. Have a look InternalGetDIBSizes(IconInfo.hbmMask, MonoInfoSize, MonoBitsSize, 2); The '16' means 16 colors - in other words, Delphi can only write 16 All this means that if you want to manipulate icons in Delphi you've Colin |
Lord C
![]() Delphi Developer |
Sat, 16 Nov 2002 03:00:00 GMT
Re:saving highcolor icons (>16 colors)On Mon, 29 May 2000 21:02:34 -0500, "Earl F. Glynn" Quote<EarlGl...@att.net> wrote: ExtractIconEx(PChar(FileName), 0, LargeIcon, SmallIcon, 1); btw, im a bit confused, when assigning the Handle, does the TIcon do a - Asbj?rn |
Earl F. Glyn
![]() Delphi Developer |
Sat, 16 Nov 2002 03:00:00 GMT
Re:saving highcolor icons (>16 colors)Quote"Lord Crc" <lord...@hotmail.com> wrote in message news:39344826.43185000@forums.inprise.com... shed much light on this. Instead of creating a TIcon, their example shows using DrawIconEx and creating a TBitmap after using ExtractIconEx. Perhaps this will help: Quote> btw, im a bit confused, when assigning the Handle, does the TIcon do a http://community.borland.com/article/0,1410,17458,00.html -- Earl F. Glynn E-mail: EarlGl...@att.net efg's Computer Lab: http://www.efg2.com/Lab |
Lord C
![]() Delphi Developer |
Sun, 17 Nov 2002 03:00:00 GMT
Re:saving highcolor icons (>16 colors)On Tue, 30 May 2000 22:17:58 -0500, "Earl F. Glynn" Quote<EarlGl...@att.net> wrote: Now, while we're at it, in the first link they do ExtractIconEx('delphi32.exe', -1, nil, nil, 0); Now, i tried doing that in d5, but no go, since the large and small var which is not very neat... did someone not do their research when - Asbj?rn |
Lord C
![]() Delphi Developer |
Sun, 17 Nov 2002 03:00:00 GMT
Re:saving highcolor icons (>16 colors)On Tue, 30 May 2000 11:46:34 +0100, Colin Wilson Quote<co...@wilsonc.demon.co.uk> wrote: Sometimes i find tracing through the VCL code really confusing... Well, Copy 'n' paste works brilliant even in theese OO days :) - Asbj?rn |
Earl F. Glyn
![]() Delphi Developer |
Sun, 17 Nov 2002 03:00:00 GMT
Re:saving highcolor icons (>16 colors)Quote"Lord Crc" <lord...@hotmail.com> wrote in message news:393532be.16841484@forums.inprise.com... D3 or D5: type ThIconArray = array[0..0] of hIcon; function ExtractIconExA(lpszFile: PAnsiChar; function ExtractIconExW(lpszFile: PWideChar; function ExtractIconEx(lpszFile: PAnsiChar; procedure TForm1.Button1Click(Sender: TObject); end; |
Lord C
![]() Delphi Developer |
Sun, 17 Nov 2002 03:00:00 GMT
Re:saving highcolor icons (>16 colors)On Wed, 31 May 2000 11:24:42 -0500, "Earl F. Glynn" Quote<EarlGl...@att.net> wrote: function ExtractIconExA(lpszFile: PAnsiChar; nIconIndex: Integer; Which means that i have to make the declaration myself, which i guess - Asbj?rn |
1. Saving icons to stream -> colors are lost
2. Saving a simple 16 color graphics file
3. 16 color icon limitation of Delphi 5?
4. Saving a bitmap into 16 colors
5. icons w/ more than 16 colors
6. How to save screenshot as 16-color BMP?
7. Problems with icons having more colors than 16
8. Saving Bitmaps with only 2 or 16 colors