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: 222
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: 222
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: 335
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: 222
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: 473
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: 5017
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: 72
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: 1031
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
Apollyon/ALD
cba
Didi/Laxity
Menace/Spaceballs
Guests online: 152
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Original Suppliers
1 Black Beard  (9.5)
2 Derbyshire Ram  (9.5)
3 hedning  (9.2)
4 Baracuda  (9.1)
5 Irata  (8.5)

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