Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Pixeling > Converting PNG to chars
2024-09-24 00:13
Case

Registered: Aug 2002
Posts: 142
Converting PNG to chars

Hi,

I have a 1 x 2 font that I want to convert into a c64 format that I can use. Currently its a png format and when I loaded it into Charpad, it does convert it but it also removes duplicate characters and then makes a map of the character set layout where i just want it as a normal c64 charset.
 
... 10 posts hidden. Click here to view all posts....
 
2024-09-24 18:42
Raistlin

Registered: Mar 2007
Posts: 680
I believe Pixcen can do it… but otherwise, feel free to send me the PNG?
2024-09-24 18:56
Jetboy

Registered: Jul 2006
Posts: 337
Quoting Case
That would be great, but unfortunately for this project I am using TASS64 because that was what it was started in.


Then, convert it in kickass, and import into TASS64 as a binary.

Quoting Raistlin
I believe Pixcen can do it… but otherwise, feel free to send me the PNG?

Give him the fishing pole, not the fish ;)
2024-09-24 19:16
soci

Registered: Sep 2003
Posts: 480
Can you convert that font to 8000 byte hires bitmap? Or at least to some format which has such part embedded? If so it should be relatively simple to cut/rearrange that.

Put the 8x16 pixel characters left-right top-bottom in a 256x64 pixel area in the top left corner before doing the bitmap conversion.

Then get 4 times 256 bytes every 640 bytes (top half of chars to 0-127) and another 4 times 256 with a 320 byte offset (bottom half of chars to 128-255).

Don't over complicate it, can be even written as 8 lines of ".binary" with hardcoded offsets.
2024-09-24 19:53
Dano

Registered: Jul 2004
Posts: 234
Opened up ChatGPT with o1-preview, gave it a prompt. Took the code and arranged it a little to fit the need.

In C# though, that's my home turf.

Was too lazy to massage the image into someting more c64-like.

Would have done it in KickAssembler scripting in the evening, but that task sounded more interesting than the stuff at work.. :D

That "do not remove duplicate chars" option is really missing in CharPadFree it seems.
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
csabanw
JackAsser/Booze Design
Jammer
Flex/Artline Designs
Guests online: 99
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 Tim  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.033 sec.