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 Coding > Convert unrestricted to singlecolor bitmap
2015-04-23 20:30
Trap

Registered: Jul 2010
Posts: 223
Convert unrestricted to singlecolor bitmap

Hi,

I have a singlecolor bitmap in 544x12 (it's a charset) in Timanthes. The layer is of type 'unrestricted single pixel' and I cannot figure out how to convert it to singlecolor bitmap. When I try to do it in Timanthes it corrupts the image (2/3's of the picture is filled with black). I have tried to create a new picture and copy'n'paste - same result.

God, this is the last time I will ever use Timanthes - the few bugs in it makes it completely unusable :( What's the alternative?

Please help me ... I'm sooooo close to release ;)

/Trap
2015-04-23 20:36
Trap

Registered: Jul 2010
Posts: 223
Thinking ... maybe there is a way to import the native Timanthes format directly in Kickass???
2015-04-23 20:48
Mermaid

Registered: Jan 2002
Posts: 338
544x12? Hm, I've always used 320x200, would Timanthes even let you save a singlecolour bitmap that's not 320x200 as a c64 file?

You've filled the background layer with a colour, and you don't have any transparent pixels in your singlecolour bitmap layer?
2015-04-23 21:37
Trap

Registered: Jul 2010
Posts: 223
Maybe I'm asking for too much in Timanthes ... I'll try to move things around and fit it in a 320x200 bitmap. Then I'll get back here and tell you what I learned :)
2015-04-24 09:47
soci

Registered: Sep 2003
Posts: 480
Quoting Trap
When I try to do it in Timanthes it corrupts the image (2/3's of the picture is filled with black)

Lame solutions:
* create a 3x size picture which has enough unused space for the corruption
* create two more pictures with content shifted to the non-corrupted area, then merge the 3 results

It's not a bug, it's a challenge ;)
2015-04-24 10:12
Oswald

Registered: Apr 2002
Posts: 5094
copy it into a "normal" paint prog and rearrange. print screen / recrop should work in any case.
2015-04-24 16:04
Slammer

Registered: Feb 2004
Posts: 416
I don't know if there is anything special about 'unrestricted' singlecolor bitmap, but if its just 2 colors you could make a screen-dump to a png or gif file, and import it with standard KickAssembler script.

Basically, you can get a byte from a picture by writing picture.getSinglecolorByte(xpos,ypos)

There is an old example on how to import a 2x2 charset in the release zip-file. The sourcefile is an gif in 1024 × 30 resolution. No need to rearrange :-)
2015-04-24 16:39
Carrion

Registered: Feb 2009
Posts: 317
Trap
Send it to me. I'll help you. You know my email.
2015-04-24 19:23
Endurion

Registered: Mar 2007
Posts: 73
C64Studio. Create New Graphic Screen, Import Image (Paste is enough), check for errors in the Import dialog, once that's OKed it asks if it should resize the canvas to the image size.

From there you can convert to charset or other formats.
2015-04-24 19:37
Burglar

Registered: Dec 2004
Posts: 1101
what Slammer said, check http://codebase64.org/doku.php?id=base:kick_assembler_macros for examples.

dont think about the editor, just use an exported png or bmp and go from there.
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
4gentE/ΤRIΛD
New Design/Excess
Hairdog/BOOM!^Dream
HBH.ZTH/Abnormal
MWR/Visdom
Martinland
iAN CooG/HVSC
TheRyk/MYD!
Nordischsound/Hokuto..
Freeze/Blazon
B.A./QUANTUM
Mike
St0rmfr0nt/Quantum
Guests online: 108
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 Layers  (9.6)
2 No Listen  (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 Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Facet  (9.4)
5 Shine  (9.4)

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