PureBasic Forum
http://forums.purebasic.com/english/

Application:Vector Icon designer
http://forums.purebasic.com/english/viewtopic.php?f=12&t=65607
Page 3 of 3

Author:  electrochrisso [ Mon Dec 19, 2016 4:05 am ]
Post subject:  Re: Application:Vector Icon designer

Not sure if I need to use the Shape Designer.exe, but can you also include a 32bit version too.
Cheers,
Chris

Author:  collectordave [ Mon Dec 19, 2016 3:45 pm ]
Post subject:  Re: Application:Vector Icon designer

Ah sorry didn't post the code for the shape designer so you can compile your own.

Will post as soon as I can.

regards

cd

Author:  electrochrisso [ Tue Dec 20, 2016 3:34 am ]
Post subject:  Re: Application:Vector Icon designer

collectordave wrote:
Ah sorry didn't post the code for the shape designer so you can compile your own.

Will post as soon as I can.

8) Thanks cd

Author:  collectordave [ Tue Dec 20, 2016 6:03 am ]
Post subject:  Re: Application:Vector Icon designer

Shape designer code posted

cd

Author:  collectordave [ Fri Jan 13, 2017 8:13 am ]
Post subject:  Re: Application:Vector Icon designer

Thanks to wolfram.

Code added to remove the sometimes ugly black lines on the finished icons.


regards

cd

Author:  collectordave [ Sun Mar 17, 2019 8:39 am ]
Post subject:  Re: Application:Vector Icon designer

Hi All

Just an update.

Adding code to the designer to create .DVG files. Scaleable icons hopefully to be used cross platform.

Added code to allow an image to be loaded for copying as well.

Mainly for the toolbar wizard. Allows icons to be designed on the fly and used in a toolbar and will also allow the toolbar wizard to be DPI aware.

.DVG image viewer programmed just adding scaleing and putting it in a module.

Anyone interested?

Regards

CD

Author:  jack [ Sun Mar 17, 2019 12:47 pm ]
Post subject:  Re: Application:Vector Icon designer

I am very interested, DPI awareness is essential nowadays :)

Author:  Andre [ Sun Mar 17, 2019 11:08 pm ]
Post subject:  Re: Application:Vector Icon designer

Sounds very interesting, so me too :D

Anything which could be used to easily draw vector icons, ideally based on / converted from loaded images, and saved in a re-usable vector drawing descriptions (.dvg?) would be very welcome and I'm interested to try...

Author:  collectordave [ Mon Mar 18, 2019 8:28 am ]
Post subject:  Re: Application:Vector Icon designer

Hi All

I have the rasterizer done very rough code in a project called "Dumb Vector Graphics" you can download it here

https://www.dropbox.com/s/92hccxkhiacfztp/Dumb%20Vector%20Graphics.zip?dl=0

Remember rough code compiled on Win 7.0 PB 5.7 not tried on Linux or mac yet but should work.

This is just a viewer. You have two options:-

1. Scale. This is a figure for how many pixels to use, default 128, enter an integer here such as 16 or 35.
2. Enabled. When checked this will draw the icon in it's enabled state unchecked then disabled state.

Each colour in the icon is individually converted to greyscale for the disabled icon so no flat grey.

After entering Scale and selecting enable select the file to display (I have included about 60 in the download) and it will be displayed on the canvas.

Only in pixels at the moment but of course DPI scaling depends on the monitor so for a 100dpi monitor a 5mm icon will be about 20 pixels.

Let me know whay you think.

Kind Regards

CD

PS Just noticed one added shape not drawn correctly problem with encoder not viewer. Flip coordinates not working. Have fixed will be in next down load. (load and Save documents)

Author:  collectordave [ Wed Apr 03, 2019 6:34 am ]
Post subject:  Re: Application:Vector Icon designer

Just an update and request.

I have recoded the shape designer.

A shape can be a whole icon or just a small part of an icon. e.g. if a shape is created for a document and plus, minus and disk shapes then adding the document shape to an icon then the Plus shape creates an icon for add document. Same for delete save etc. There is no need to create disabled icons as each colour used is preserved and when disabled each colour can be individually converted to its greyscale equivalent.

I have started to use JSON to save shapes into a database and it seems to work, each element of a shape is converted to a JSON string and stored.

It has occurred to me that icons are the same so is it better to use JSON for the DVG format or as now XML?

The code is very much in the alpha stage at the moment but if anyone would like to help improve the code or this part of the programme I will post a link to the code as is.

Page 3 of 3 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/