Author Topic: Work-In-Progress: JavaCPC Paint!!!  (Read 2484 times)

0 Members and 1 Guest are viewing this topic.

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Work-In-Progress: JavaCPC Paint!!!
« on: 17:29, 07 October 09 »
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
« Last Edit: 00:43, 10 October 09 by Devilmarkus »
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

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Re: Work-In-Progress: JavaCPC Paint!!!
« Reply #1 on: 00:43, 10 October 09 »
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

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.568
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3136
  • Likes Given: 5784
Re: Work-In-Progress: JavaCPC Paint!!!
« Reply #2 on: 21: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 :)

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Re: Work-In-Progress: JavaCPC Paint!!!
« Reply #3 on: 21:52, 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.
« Last Edit: 21:56, 12 October 09 by Devilmarkus »
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

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.568
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3136
  • Likes Given: 5784
Re: Work-In-Progress: JavaCPC Paint!!!
« Reply #4 on: 08:49, 13 October 09 »
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...

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Re: Work-In-Progress: JavaCPC Paint!!!
« Reply #5 on: 14:58, 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