It is currently Thu Dec 12, 2019 7:23 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject: Re: Application:Vector Icon designer
PostPosted: Mon Dec 19, 2016 4:05 am 
Offline
Addict
Addict
User avatar

Joined: Mon May 14, 2007 2:13 am
Posts: 979
Location: Darling River
Not sure if I need to use the Shape Designer.exe, but can you also include a 32bit version too.
Cheers,
Chris

_________________
PureBasic Rocks! Even More! And More!
PureBasic 5, Now We're Really Rockin!


Top
 Profile  
Reply with quote  
 Post subject: Re: Application:Vector Icon designer
PostPosted: Mon Dec 19, 2016 3:45 pm 
Offline
Addict
Addict

Joined: Fri Aug 28, 2015 6:10 pm
Posts: 1043
Location: Portugal
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

_________________
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Application:Vector Icon designer
PostPosted: Tue Dec 20, 2016 3:34 am 
Offline
Addict
Addict
User avatar

Joined: Mon May 14, 2007 2:13 am
Posts: 979
Location: Darling River
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

_________________
PureBasic Rocks! Even More! And More!
PureBasic 5, Now We're Really Rockin!


Top
 Profile  
Reply with quote  
 Post subject: Re: Application:Vector Icon designer
PostPosted: Tue Dec 20, 2016 6:03 am 
Offline
Addict
Addict

Joined: Fri Aug 28, 2015 6:10 pm
Posts: 1043
Location: Portugal
Shape designer code posted

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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Application:Vector Icon designer
PostPosted: Fri Jan 13, 2017 8:13 am 
Offline
Addict
Addict

Joined: Fri Aug 28, 2015 6:10 pm
Posts: 1043
Location: Portugal
Thanks to wolfram.

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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Application:Vector Icon designer
PostPosted: Sun Mar 17, 2019 8:39 am 
Offline
Addict
Addict

Joined: Fri Aug 28, 2015 6:10 pm
Posts: 1043
Location: Portugal
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

_________________
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Application:Vector Icon designer
PostPosted: Sun Mar 17, 2019 12:47 pm 
Offline
Addict
Addict

Joined: Fri Apr 25, 2003 11:10 pm
Posts: 1216
I am very interested, DPI awareness is essential nowadays :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Application:Vector Icon designer
PostPosted: Sun Mar 17, 2019 11:08 pm 
Offline
PureBasic Team
PureBasic Team
User avatar

Joined: Fri Apr 25, 2003 6:14 pm
Posts: 1704
Location: Germany (Saxony, Deutscheinsiedel)
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...

_________________
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)


Top
 Profile  
Reply with quote  
 Post subject: Re: Application:Vector Icon designer
PostPosted: Mon Mar 18, 2019 8:28 am 
Offline
Addict
Addict

Joined: Fri Aug 28, 2015 6:10 pm
Posts: 1043
Location: Portugal
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)

_________________
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Application:Vector Icon designer
PostPosted: Wed Apr 03, 2019 6:34 am 
Offline
Addict
Addict

Joined: Fri Aug 28, 2015 6:10 pm
Posts: 1043
Location: Portugal
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.

_________________
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 40 posts ]  Go to page Previous  1, 2, 3

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye