Application:Vector Icon designer
- electrochrisso
- Addict
- Posts: 980
- Joined: Mon May 14, 2007 2:13 am
- Location: Darling River
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
Cheers,
Chris
PureBasic! Purely one of the best
-
- Addict
- Posts: 1309
- Joined: Fri Aug 28, 2015 6:10 pm
- Location: Portugal
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
Will post as soon as I can.
regards
cd
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
- electrochrisso
- Addict
- Posts: 980
- Joined: Mon May 14, 2007 2:13 am
- Location: Darling River
Re: Application:Vector Icon designer
Thanks cdcollectordave 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.
PureBasic! Purely one of the best
-
- Addict
- Posts: 1309
- Joined: Fri Aug 28, 2015 6:10 pm
- Location: Portugal
Re: Application:Vector Icon designer
Shape designer code posted
cd
cd
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
-
- Addict
- Posts: 1309
- Joined: Fri Aug 28, 2015 6:10 pm
- Location: Portugal
Re: Application:Vector Icon designer
Thanks to wolfram.
Code added to remove the sometimes ugly black lines on the finished icons.
regards
cd
Code added to remove the sometimes ugly black lines on the finished icons.
regards
cd
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
-
- Addict
- Posts: 1309
- Joined: Fri Aug 28, 2015 6:10 pm
- Location: Portugal
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
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
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
Re: Application:Vector Icon designer
I am very interested, DPI awareness is essential nowadays
- Andre
- PureBasic Team
- Posts: 2058
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: Application:Vector Icon designer
Sounds very interesting, so me too
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...
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...
-
- Addict
- Posts: 1309
- Joined: Fri Aug 28, 2015 6:10 pm
- Location: Portugal
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/92hccxkhiacfz ... s.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)
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/92hccxkhiacfz ... s.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)
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
-
- Addict
- Posts: 1309
- Joined: Fri Aug 28, 2015 6:10 pm
- Location: Portugal
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.
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.
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.