Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / icons, icons, icons!

Author
Message
Dean
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Canada
Posted: 7th Dec 2002 07:24
I'm tired, so I'll keep this short

just wondering if there's a way to extract a program's icon via the file functions in DB or VB

thanks
http://the-junkyard.net/nazca/upload/pics/avatar.jpg[/img]
''Mmmm.. Tastes like Nazca!''
Martyn Pittuck
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 7th Dec 2002 13:10
i think you can

There is a program called res hack that does this.

I will see if i can find it for ya.

The Outside is a evil place to be, too much light, too much noise and too many distractions....
I went outside once and my FPS rate dropped to 5.
Dean
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Canada
Posted: 7th Dec 2002 20:18
thanks, but I was wondering if I could get the icon from a file using ''read byte'' in DB

I don't think it's possible though


''Mmmm.. Tastes like Nazca!''
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 8th Dec 2002 05:19
yeah you can... you'll have to give me a while to translate the header from C++ use for a more DB friendly setup, but any icons in an EXE file you can grab.

Actual Icons are actually standard bitmaps with layers - so that might be of some interest.
Just gimme a while thou oki

Anata aru kowagaru no watashi!
Dean
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Canada
Posted: 8th Dec 2002 06:07
thanks Vegeta


''Mmmm.. Tastes like Nazca!''
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 8th Dec 2002 09:20
oki what i have so far so you can decode the icons

- Header
-- Reserved 2byte Word
-- Type 2byte Word
-- Count 2byte Word
-- Icons (16Byte Icon)


Reserved should always be 0
Type should always be 1
Count is the Number of Icons to look for
yeah the titles were self explainitory really but just in case hehee


- Icon Data
-- Width 1Byte Byte
-- Height 1Byte Byte
-- ColourCount 1Byte Byte
-- Reserved 1Byte Byte
-- Planes 2Byte Word
-- BitCount 2Byte Word
-- TotalSize 4Byte Dword|Long
-- ImageOffset 4Byte Dword|Long


Width & Height are in Pixels (should be multiple of 2)
ColourCount is the number of colours used as its a 256 Colour Palette (usually windows colours)
Reserved should always be 0
Planes is the number of colour planes there are
TotalSize is the total size of the Icon in Bytes
ImageOffet is Offset to Icon data in Bytes


oki well thats all for now ... there is mre but i'm being moaned at
i'll post up the rest in the morning

Anata aru kowagaru no watashi!
Dean
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Canada
Posted: 9th Dec 2002 01:24
great! thanks!

now, is there a way to read an EXE file to find the program's icon?


''Mmmm.. Tastes like Nazca!''
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 9th Dec 2002 06:06
hehee i slept in late today ... i only woke up an hour ago (bad Raven)

I'll get on the rest in a min, like the actual pixel data and the placement within a Windows EXE

Anata aru kowagaru no watashi!
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 13th Dec 2002 15:03
oh man i'm so freakin abscent minded (^_^) sorry there Naz...

oki well here's the rest only took me 2days to remember
hehee ... decided to place it within a downloadable txt as it was far easier to setup everything to be more understandable.

now i kinda got confused about a few things about the exe, so i'll continue with that later but sent you 3.1 format which is Win32 compatible and also MSDOS

http://members.lycos.co.uk/timesaga/info.zip

Anata aru kowagaru no watashi!
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 13th Dec 2002 15:04
crap i forgot about the external link crap
... http://members.lycos.co.uk/timesaga/phpBB2
i'll upload there

Anata aru kowagaru no watashi!
Dean
21
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Canada
Posted: 14th Dec 2002 00:15
Thanks a bunch, that's just what I needed!

Nice forum, too BTW


''Mmmm.. Tastes like Nazca!''
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 14th Dec 2002 19:58
yeah i likes it... when lycos isn't down lol which right now is almost every otherday

Anata aru kowagaru no watashi!

Login to post a reply

Server time is: 2024-04-16 17:25:44
Your offset time is: 2024-04-16 17:25:44