Save an image (CreateImage()) as a .ico file

Windows specific forum
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Save an image (CreateImage()) as a .ico file

Post by blueznl »

I'm slowly getting to where I wanna' be :-) but sill have to figure out one more thing. How can I save an image created with CreateImage() as a .ico file?

I looked on the forum and found some code, but haven't been able to get it to work with a regular PB image. Did I overlook a snippet?

(I don't care about transparencies etc. in this case.)
Last edited by blueznl on Thu Oct 07, 2021 7:18 pm, edited 1 time in total.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
Mijikai
Addict
Addict
Posts: 1360
Joined: Sun Sep 11, 2016 2:17 pm

Re: Saven an image (CreateImage()) as a .ico file

Post by Mijikai »

I looked briefly into the icon format mby this is helpful:
http://forums.purebasic.com/german/view ... b2#p350902
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: Saven an image (CreateImage()) as a .ico file

Post by blueznl »

Thx. That looks usable. I'll have a look at it!
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
BarryG
Addict
Addict
Posts: 3318
Joined: Thu Apr 18, 2019 8:17 am

Re: Save an image (CreateImage()) as a .ico file

Post by BarryG »

blueznl wrote: Thu Oct 07, 2021 4:21 pmHow can I save an image created with CreateImage() as a .ico file?
viewtopic.php?f=12&t=23387
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: Save an image (CreateImage()) as a .ico file

Post by blueznl »

Oh, interesting stuff. I think even the old Amiga adopted some earlier version of that format. I can't recall anymore, sold the A2000 and all the extras I once had years ago, so I might be completely wrong ;-)

Thx for posting the links!
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
BarryG
Addict
Addict
Posts: 3318
Joined: Thu Apr 18, 2019 8:17 am

Re: Save an image (CreateImage()) as a .ico file

Post by BarryG »

blueznl wrote: Tue Dec 21, 2021 6:07 pmsold the A2000 and all the extras I once had
Have you seen this -> https://retrogames.biz/thea500-mini

Despite the name, it's not just an A500; it also emulates an A600 and A1200.

Note: That's not a real keyboard; it uses a virtual one. They'll likely release a version with a real keyboard for v2, like they did for the C64.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6161
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: Save an image (CreateImage()) as a .ico file

Post by blueznl »

Yeah, I did. But WinUAE already works, so... < shrug >

The Amiga was great and deserved better, but I fear we all moved on.
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Post Reply