Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-01-2001, 11:31 AM
zaskovic zaskovic is offline
Junior Member
 
Join Date: Oct 2001
Posts: 2
Default very easy question

hello,
just wanna to ask a very simple question:

I extracted an Icon from an executable into a Ticon. Fine, but how do I save it with 256 colors? The TIcon.SaveToFile() procedure only supports 16 colors.

I already searched for a unit which would accomplish this task, but only found JvTools which won't save correctly in 256 colors and IconTools, which seems to be quite decent, but I cant figure out how to get my icon into it's "TAdvanceIcon" to use it's savetofile procedure.

Thanks in advance. Any help is greatly appreciatd.
Reply With Quote
  #2  
Old 02-01-2001, 01:33 PM
Wise Guy Wise Guy is offline
Member
 
Join Date: Jan 2001
Posts: 45
Default RE: very easy question

I think that if you use the TPicture (which supports icons) instead of TIcon it will do the job... (Honeslty haven't tried it but think it's gonna work) and use the TPictures's SaveToFile method
Reply With Quote
  #3  
Old 02-01-2001, 02:17 PM
MrBaseball34 MrBaseball34 is offline
Senior Member
 
Join Date: Jan 2001
Posts: 7,260
Default RE: RE: very easy question

If the TGraphic Type is TIcon, the TPicture uses the
WriteIcon method in Graphics.pas and it is written to
support ONLY 16 color icons with one caveat. If the color
depth of your display is 256, it will save the icon at 256
colors. Any other color depth, it saves at 16 colors.
Reply With Quote
  #4  
Old 02-02-2001, 03:05 AM
whatever_ whatever_ is offline
Member
 
Join Date: Jan 2001
Posts: 36
Default RE: RE: very easy question

hrm so can anyone actually answer my question?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 10:36 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.