How do you save a screen

Discuss all aspects of programming here. From 8-bit through to modern architectures.
User avatar
FourthStone
Posts: 396
Joined: Thu Nov 17, 2016 2:29 am
Location: Melbourne, Australia

Re: How do you save a screen

Postby FourthStone » Sat Jul 22, 2017 11:48 pm

One more update, I've added 2 gradient fills for horizontal and vertical rectangles, let me know what you think.

Still thinking about gradient fills, need to come up with some controls to specify start and end pattern, direction etc.
Attachments
ART4WIN_Portrait.zip
(10.06 KiB) Downloaded 16 times

User avatar
pixelblip
Posts: 438
Joined: Wed Feb 04, 2015 7:19 pm

Re: How do you save a screen

Postby pixelblip » Sun Jul 23, 2017 6:01 am

That's fantastic. Thank you.......gradient fils are so useful.

User avatar
pixelblip
Posts: 438
Joined: Wed Feb 04, 2015 7:19 pm

Re: How do you save a screen

Postby pixelblip » Sun Jul 23, 2017 7:07 am

The gradient rectangle fill is awesome. Well done to work it out! I bet doing it with irregular shapes is a proper head scratcher :lol:

Down the line it would be nice some control over the graniness of the gradient dither if your head can take that idea :lol:

You were right to go to windows to develop this software.....I'm not sure a BBC or Master would have coped.......
Circles are also cool, having an outline is really good. :D

Down the line some more things I can think of are an airbrush with variable flow , patterns, =P~ copy and paste and even layers...I can think of so much! :wink:

Having the icons in there is really interesting.....its really looking like a professional program! The multiple undo is very useful of course.....developing this and then painting with it has been a lot of fun so far!
Last edited by pixelblip on Sun Jul 23, 2017 7:22 am, edited 4 times in total.

User avatar
pixelblip
Posts: 438
Joined: Wed Feb 04, 2015 7:19 pm

Re: How do you save a screen

Postby pixelblip » Sun Jul 23, 2017 7:17 am

Gradient fill in action and new icons for people following the thread
Attachments
Capture.JPG

User avatar
Elminster
Posts: 1632
Joined: Wed Jun 20, 2012 8:09 am
Location: Essex, UK

Re: How do you save a screen

Postby Elminster » Sun Jul 23, 2017 8:49 am

pixelblip wrote:You were right to go to windows to develop this software.....I'm not sure a BBC or Master would have coped.......


Would be interested to see what a master with pitube co pro and videonula only version could do.

User avatar
FourthStone
Posts: 396
Joined: Thu Nov 17, 2016 2:29 am
Location: Melbourne, Australia

Re: How do you save a screen

Postby FourthStone » Sun Jul 23, 2017 9:39 am

Good to hear feedback!
Elminster wrote:Would be interested to see what a master with pitube co pro and videonula only version could do.

I'm still pretty confident that I could stretch my abilities a little further a produce a similar program for the Master using ASM, but..., I do think that having more screen real estate, extra ram and menu's for tools and the palette do make a nice improvement on what be be possible on a beeb.
pixelblip wrote:The gradient rectangle fill is awesome. Well done to work it out! I bet doing it with irregular shapes is a proper head scratcher :lol:

The irregular fill won't be much different to what is already coded, I could whip that up next release for H and V gradients.

I am trying plan more control over start and end patterns and gradient direction, I'll hunt around and play with a few idea's before coding it up... please feel free to offer any suggestions on how it might work :-k
pixelblip wrote:Down the line some more things I can think of are an airbrush with variable flow , patterns, =P~ copy and paste and even layers...I can think of so much! :wink:

I am still working on the airbrush but I am struggling conceptually on how it will render based on current pattern selected... one idea was that it's just based on the current colour selected and it's a gradual fill using a solid colour... just can't picture how it should flow over the canvas so to speak...
pixelblip wrote:Having the icons in there is really interesting.....its really looking like a professional program! The multiple undo is very useful of course.....developing this and then painting with it has been a lot of fun so far!

I've noticed we're reaching the limit of the free version of BB4W, I've had to cull quite a few commented blocks to ensure enough free RAM is available for stable program operation.

Couple of options here, switch to SDL or buy the full version... I've considered the full version as the graphics performance for this type of application seems to be better suited to BB4W, although as far as I can tell BB4W is no longer being actively developed and the SDL version might be a better long term choice.

User avatar
pixelblip
Posts: 438
Joined: Wed Feb 04, 2015 7:19 pm

Re: How do you save a screen

Postby pixelblip » Sun Jul 23, 2017 4:24 pm

We will have to think about this Fourthstone (sdl). Would that be much work for you......you have spent a lot of time on it now.
I can live without all the other features but so long as your appetite is still strong we can move ahead with more ideas.....

I can only imagine the pictures are going to get better and better over time. Already in 6 months they have developed.

Let's hope some other users can contribute some pics in the future.

User avatar
FourthStone
Posts: 396
Joined: Thu Nov 17, 2016 2:29 am
Location: Melbourne, Australia

Re: How do you save a screen

Postby FourthStone » Sun Aug 06, 2017 7:16 am

Small update, time a bit limited but managed to do a few little changes:

* Added place holder icons for brush styles
* Updated fill routine to have an unlimited stack, used a sneaky fix so complex shapes don't overflow the stack causing incomplete fills
* Changes to tool highlights
* General clean up and optimizations

Happy painting :D
Attachments
ART4WIN_Portrait.zip
(11.04 KiB) Downloaded 9 times

User avatar
tricky
Posts: 1875
Joined: Tue Jun 21, 2011 8:25 am
Contact:

Re: How do you save a screen

Postby tricky » Sun Aug 06, 2017 7:42 am

grobda wrote:just downloaded art4win - nice work! :)

been mucking about with beeb graphics, drew this in beebspriter and paint;

rtype.png

Very inspiring, is it really only 160x256?

User avatar
FourthStone
Posts: 396
Joined: Thu Nov 17, 2016 2:29 am
Location: Melbourne, Australia

Re: How do you save a screen

Postby FourthStone » Sun Aug 06, 2017 10:36 am

tricky wrote:Very inspiring, is it really only 160x256?


I've tried my hardest to keep it true to mode 2 :D

If you find anything that doesn't look right please let me know.

User avatar
grobda
Posts: 101
Joined: Tue Apr 23, 2013 1:46 pm
Location: Glasgow

Re: How do you save a screen

Postby grobda » Sun Aug 06, 2017 12:43 pm

tricky wrote:
grobda wrote:just downloaded art4win - nice work! :)

been mucking about with beeb graphics, drew this in beebspriter and paint;

rtype.png

Very inspiring, is it really only 160x256?


good point, I double-checked and it isn't. not sure what happened there can only think i got muddled up with resolutions.
so here's a revised image on an actual BBC in mode 2;
rtype mode2.jpg

User avatar
tricky
Posts: 1875
Joined: Tue Jun 21, 2011 8:25 am
Contact:

Re: How do you save a screen

Postby tricky » Sun Aug 06, 2017 12:48 pm

Still looks amazing =D>

User avatar
pixelblip
Posts: 438
Joined: Wed Feb 04, 2015 7:19 pm

Re: How do you save a screen

Postby pixelblip » Sun Aug 06, 2017 1:18 pm

Thank you for posting an update Forthstone.........
I've been really struggling this week with the painting.........spent hours on my King Tut - that is the most difficult thing I have drawn yet.......the lips are a nightmare! It's all the reflections in it as well. I must finish it though as I have some unfinished pics still to do that I posted on here a while back. Ho hum!

User avatar
pixelblip
Posts: 438
Joined: Wed Feb 04, 2015 7:19 pm

Re: How do you save a screen

Postby pixelblip » Wed Aug 23, 2017 5:00 pm

Hi Fourthstone.
I suspect you've been pretty busy with work so this can go on a back burner ....just some small additions which I think could make life easier using ART 2......I hope you don't mind me mentioning this!

One thing is being able to save quickly with an incremental filename. So you just click a button and it saves straight away without any filename popups....that way i don't have to keep going back to an on screen keyboard (which can be fiddly on a tablet ). It would make drawing much quicker and I often save as I go.

Also it would be nice to save as Jpeg but that's minor.................just they don't accept BMPs on here ............

User avatar
FourthStone
Posts: 396
Joined: Thu Nov 17, 2016 2:29 am
Location: Melbourne, Australia

Re: How do you save a screen

Postby FourthStone » Wed Aug 23, 2017 10:48 pm

pixelblip wrote:I suspect you've been pretty busy with work so this can go on a back burner ....just some small additions which I think could make life easier using ART 2......I hope you don't mind me mentioning this!

One thing is being able to save quickly with an incremental filename. So you just click a button and it saves straight away without any filename popups....that way i don't have to keep going back to an on screen keyboard (which can be fiddly on a tablet ). It would make drawing much quicker and I often save as I go.

Also it would be nice to save as Jpeg but that's minor.................just they don't accept BMPs on here ............


Busy is not the word my friend, hectic and frantic along with a side of tired and sick work well tho :lol: Generally lots going on with home, family, work and busy schedules to keep up with but....

I have been doing some little updates on ART 4 Windows, nothing much worth a release at the moment. I should be able to squeeze in at least the first change you've requested which is the quick save button, this one will be nice and easy (as bmp... :oops: ).

The save as jpeg is an option, however I need to investigate whether a lossless compression ratio is possible as standard jpeg will introduce compression artefacts which would effectively blur the pristine mode 2 pixels and colours... will read up about it on the BB4W forums and see if there is a solution.

User avatar
ctr
Posts: 93
Joined: Wed Jul 16, 2014 2:53 pm

Re: How do you save a screen

Postby ctr » Wed Aug 23, 2017 11:05 pm

png might be a better choice. The last picture, "Toxic Wastedump.jpg", is 215KB. Converted to indexed png it is 10KB, and guaranteed lossless.

User avatar
FourthStone
Posts: 396
Joined: Thu Nov 17, 2016 2:29 am
Location: Melbourne, Australia

Re: How do you save a screen

Postby FourthStone » Thu Aug 24, 2017 9:13 am

ctr wrote:png might be a better choice. The last picture, "Toxic Wastedump.jpg", is 215KB. Converted to indexed png it is 10KB, and guaranteed lossless.


I need to find out more details about fixing the png (or jpg) to indexed or lossless, otherwise both are options for saving and loading files.

For now I have added a very basic quick save toggle, please have a play and let me know if it suites your needs?

There is a toggle tool button on bottom right of tool bar (Disk with Q on it), when it's highlighted green that means quick save is active. When active clicking the normal save button will create a new quick save file (BMP sorry) in the program folder... maximum files count is 100000 and file names are saved this e.g "ART_QS_00001.BMP".

Few other little fixes and enhancements thrown in, happy painting!
Attachments
ART4WIN_Portrait.zip
(11.85 KiB) Downloaded 11 times

User avatar
pixelblip
Posts: 438
Joined: Wed Feb 04, 2015 7:19 pm

Re: How do you save a screen

Postby pixelblip » Thu Aug 24, 2017 12:05 pm

Ah very useful Fourthstone! Thanks.
I hope it calms down for you a bit .......and feel better soon.
Yeh PNG is a good idea.......

User avatar
pixelblip
Posts: 438
Joined: Wed Feb 04, 2015 7:19 pm

Re: How do you save a screen

Postby pixelblip » Thu Aug 24, 2017 12:07 pm

I see a zoom icon in there :D
This software defo has the Dpaint old school feel about it.........the more I use it.

User avatar
FourthStone
Posts: 396
Joined: Thu Nov 17, 2016 2:29 am
Location: Melbourne, Australia

Re: How do you save a screen

Postby FourthStone » Thu Aug 24, 2017 8:23 pm

pixelblip wrote:I see a zoom icon in there :D
This software defo has the Dpaint old school feel about it.........the more I use it.


The idea of the zoom brush is to stretch the current pattern x2 so that you effectively can get the same pattern but over a bigger area... I think that's what I was thinking :lol: Would make it so that if you had the 1 pixel per 16 selected then it would become 1 pixel per 64... still trying to work it out myself :?

I have also implemented the circle brush which is works for standard drawing and circle outline drawing...

Time permitting I'll chip away at bits and pieces trying to improve as I go.

Feel free to touch up the icons I have created as they're not really the same style as your original ones, let me know if you have the time to have a look?

User avatar
pixelblip
Posts: 438
Joined: Wed Feb 04, 2015 7:19 pm

Re: How do you save a screen

Postby pixelblip » Sat Aug 26, 2017 12:16 pm

That's great thanks a lot............
I will touch up the icons some more ...........although yours look pretty good!

I know there is always a big wish list but much further down the line...... :D ........layers would be really cool..........
Sometimes I draw the sky in and then draw over the top and think arrgh so go back and re-do the sky...........even if you had say 5 max

I do appreciate we might not have had layers with a BBC micro but we are still in Mode 2 so I don't count that as cheating!

Anyway something to think about incase you find yourself with lots of spare time in your life :lol:

User avatar
FourthStone
Posts: 396
Joined: Thu Nov 17, 2016 2:29 am
Location: Melbourne, Australia

Re: How do you save a screen

Postby FourthStone » Sun Aug 27, 2017 10:50 pm

Layers would be possible with more memory ala BB4W SDL or something else entirely like visual studio. I need to speed some time writing a conversion for SDL and try it out, if we can get that working that will free up the current issue of constant ram availability pressure and let us work on more advance features which generally require lots of ram for processing.

I really think we've gotten as far as possible with the free version of BB4W barring small feature adds and tuning. Pretty amazing considering BB4W free has a 32kb ram limit for code and variables... not too bad a proggy for being so constrained. The code alone is around 24kb and I've managed to use some really bad coding techniques to limit the ram usage a lot and some down right dirty tricks to emulate more ram like saving undos to disk and using files for temporary ram storage for the fill routine... all in all a really good hack job :lol:

One other thing I've been thinking about is adding support for the other graphics modes, and maybe sprite and font editing as well. Would like to make this a general purpose graphics tool for importing, exporting and content creation for some of my own projects... definitely need more ram for that though :wink:

User avatar
pixelblip
Posts: 438
Joined: Wed Feb 04, 2015 7:19 pm

Re: How do you save a screen

Postby pixelblip » Tue Aug 29, 2017 6:29 pm

Yeh sorry it's easy to forget we are just using 32k for the whole program. I'm really happy to use it as is without extra features.......but if you are still enjoying developing it then we can move it on as it's always been evolving......maybe what is nice is the simplicity of it in one way.....the nice thing about BBC Basic is that it keeps it simple.....

In some ways not having things like layers makes you paint in a way that you wouldn't if you had them.......i.e. if you make a mistake you go back over it.....so there is an argument the images look the way they do ( in a good way ) because of the lack of all of these extra things :)

User avatar
FourthStone
Posts: 396
Joined: Thu Nov 17, 2016 2:29 am
Location: Melbourne, Australia

Re: How do you save a screen

Postby FourthStone » Wed Sep 06, 2017 5:40 am

Been having a play around with converting ART to SDL. I have the bulk of the program 'functioning' but there are a few issues for which I am struggling to overcome due to differences in the graphics subsystem mainly around graphics performance being a lot slower.

One issue is that drawing is slower and in some cases positively glacial, the fill routine is crippled due to a quirk of using SDL with the POINT command. I have managed to speed it up a little but the fix would required major changes to other parts of the program and I'm not sure once these changes are done whether the performance would be usable so I'm a little hesitant to go further down this path at the moment :?

So what does this mean? While I like the idea of SDL being compatible across multiple platforms, I'm just not sure the performance is suitable for the type of program we're trying to write.

We can continue to tweak ART for Windows in BB4w and I might focus on tidying up certain areas and trying to optomise RAM usage so we can fit more features in.

My Windows version of ART is still on the back burner for now but I still think that it will be the best option to develop in the long run as memory and features are unlimited (unlike my available time to actually program the thing :lol: )

User avatar
pixelblip
Posts: 438
Joined: Wed Feb 04, 2015 7:19 pm

Re: How do you save a screen

Postby pixelblip » Fri Sep 08, 2017 10:36 am

Ahh thanks so much Fourthstone for trying to port it over ( and taking all that time to try ). Appreciated. I think you are right if these problems crop up now you might spend a long time going down a path and it never working. Speed is quite important....

We can always go the paid route for BBC BASIC....I'm happy to pay for it.....
It also means we can produce a windows app from BB4W.....that others can run.

Of course I am more than happy with the software as it is...

Again thank you for your efforts as life is busy.

User avatar
FourthStone
Posts: 396
Joined: Thu Nov 17, 2016 2:29 am
Location: Melbourne, Australia

Re: How do you save a screen

Postby FourthStone » Fri Sep 15, 2017 3:00 am

Thought it was time I should post an update, been having a little clean up and feature tuning session and wanted to share the current state.

Couple of things to note:
* The gradient box tool now is direction aware, e.g. for the horizontal gradient if you drag the box from left to right or right to left the gradient will match the direction of drag, the same effect is applied to the vertical box gradient.
* An airbrush effect has been implemented, left me know if the fill is too fast or slow, I'm thinking to add a slider to control the fill speed
* The x2 brush style is partly implemented, have a play and let me know what you think... couple of different ways this tool could work but for now it just spreads the current pattern apart by a factor of 2
* Lots of tuning so let me know if something is broken

Feedback much appreciated!

Happy drawing :D
Attachments
ART4WIN_Portrait.zip
(12.38 KiB) Downloaded 17 times

User avatar
pixelblip
Posts: 438
Joined: Wed Feb 04, 2015 7:19 pm

Re: How do you save a screen

Postby pixelblip » Fri Sep 15, 2017 4:38 am

Wah those are awesome updates *thanks*
:)

The gradient tool super useful in all directions.....can't wait to try the airbrush...I can see me not working much today at work!

Who knows maybe another piccie this weekend. :wink:
Thanks again for all you hard work.

I need to finish my Star Wars picture soon. Before the next film stars coming up on the horizon.

User avatar
pixelblip
Posts: 438
Joined: Wed Feb 04, 2015 7:19 pm

Re: How do you save a screen

Postby pixelblip » Fri Sep 15, 2017 4:50 am

How did you do that airbrush with dithering that keeps its place with tessellated checkerboards of all sizes. Most clever indeed! I was trying to work out in my head how you would do it.

The 2x mode is really great. Another very useful addition for tons more shades. That will open out the look much more.
The gradient so useful.

This is the premiere 8 bit style paint package if you ask me! It's a joy to use. I'm going to go mad with the airbrush this weekend and see what happens.

Do download it everyone ......and have a doodle!

User avatar
FourthStone
Posts: 396
Joined: Thu Nov 17, 2016 2:29 am
Location: Melbourne, Australia

Re: How do you save a screen

Postby FourthStone » Fri Sep 15, 2017 5:56 am

pixelblip wrote:How did you do that airbrush with dithering that keeps its place with tessellated checkerboards of all sizes. Most clever indeed! I was trying to work out in my head how you would do it.

The 2x mode is really great. Another very useful addition for tons more shades. That will open out the look much more.
The gradient so useful.

This is the premiere 8 bit style paint package if you ask me! It's a joy to use. I'm going to go mad with the airbrush this weekend and see what happens.

Do download it everyone ......and have a doodle!


Ah shucks, I'm glad you like it! I thought long and hard on the airbrush and in the end I settled on a technique which uses the standard drawing brush with a random number to determine whether or not to draw each pixel.... a bit of a hack job if you ask me but it seems to work fairly well 8)

Looking forward to some more pictures when you get a chance :o


Return to “programming”

Who is online

Users browsing this forum: No registered users and 0 guests