News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Devilmarkus

Work-In-Progress: JavaCPC Paint!!!

Started by Devilmarkus, 15:29, 07 October 09

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Devilmarkus

Hello together,

the next upcoming version of JavaCPC will have a great new feature: JavaCPC Paint!

This is a tool to paint directly into CPC-screen memory.

You can also convert BMP,PNG,GIF and JPG files into CPC screens, too.

(Overscan and other extra modes are not supported)

You can also paint into this tool, add texts, cut out shapes, paste shapes and much more.

The screens can be saved then to DSK (when PAINT binary is running) or to your PC.

The screens are OCP-Art-Studio compatible, inclusive a .PAL file containing screen's palette & screen-mode.

The tool is not the "non-plus-ultra" but it's a great feature for JavaCPC, I think.

Here's a preview-screenshot:


To all of you, who know JAVA: I still need to improve the INK reduction from 27 to 16, 4 or 2 INKs for each screen mode.
Perhaps someone can help me to write this routine in JAVA...
Info:
- Screen is calculated into all 27 CPC INKs
- Palette uses most used INKs in order. (highest to lowest)

For more information, feel free to contact me.

Cheers,
Markus
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Devilmarkus

The progress is about 98% now.

Here's a realtime-captured GIF animation of the application:

When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Gryzor

This is a really great feature, and if developed a bit further (some fx, more modes etc) I think it'd be a real boon for developers out there... I really didn't expect anything of this sort, but obviously you're in overdrive mode :)

Devilmarkus

#3
Quote from: Gryzor on 19:38, 12 October 09
This is a really great feature, and if developed a bit further (some fx, more modes etc) I think it'd be a real boon for developers out there... I really didn't expect anything of this sort, but obviously you're in overdrive mode :)

Thanks.

About FX / Other modes/ formats /things etc.:
- Dithering is not easy to implement here. This must be applied to source image.
(When somebody has an idea, how to implement dithering, contact me)

- All CPC modes are supported (MODE 0, 1, 2)
- CPC+ modes are not supported, because JavaCPC does not emulate the CPC+ range.
- Overscan and other extra formats are also not supported.
- When you need a better result, use ConvImgCPC by Demoniak

- I added "load from DSK" today. You can select a file from DSK in drive and load it into Paint.
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Gryzor

ConvImgCPC is exactly what I had in mind, actually.

And I forgot the emu does not support Plus, damn :D

But dithering would be important, I think, to make a complete solution. I don't think it's very hard to implement -or is it? I mean, there are so many modes/algorithms floating around...

Devilmarkus

Quote from: Gryzor on 06:49, 13 October 09
But dithering would be important, I think, to make a complete solution. I don't think it's very hard to implement -or is it? I mean, there are so many modes/algorithms floating around...

The problem is, how I build the screen.
I am using 2 FOR-loops (x,y) to check the colour of each pixel and then I reduce it's colour.
Here I dont know, how I could add a dithering algorithm.

Here's an example how to load from DSK:


You can restore the palette when the image has been saved with ConvImgCPC or JavaCPC Paint.

The dialog shows all files on your DSK which end with "SCR", "BIN" or ".   ".
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Powered by SMFPacks Menu Editor Mod