File Exchange

image thumbnail

IconEditor v1.6 (2010)

version 1.1 (115 KB) by

iconeditor icon editor for creating and editing icons and small images.

3.33333
11 Ratings

3 Downloads

Updated

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

ICONEDITOR create and edit icons or mouse cursors in either standard or custom sizes

usage:
iconeditor(x,y,pixel)
x - horizontal size (16 as deault)
y - horizontal size (16 as deault)
pixel - size of each dot (13 as deafult)

iconeditor
same as iconeditor(16,16,16)

iconeditor(img)
img - 3D-RGB image matrix

iconeditor(img,pixel)
img - RGB image matrix
pixel - size of each pixel (13 as deault)

Comments and Ratings (17)

Mikhail

Mikhail (view profile)

It may be required to run this before using MATLAB's built in iconeditor:

addpath(fullfile(matlabroot,'toolbox/matlab/guide/guitools'))

Mikhail

Mikhail (view profile)

Instead of using this outdated and p-coded submission, i've resorted to using built-in iconeditor, as described here: https://www.mathworks.com/help/matlab/creating_guis/creating-toolbars.html#bralqx5

To be able to use GUIDE's icon editor in standalone mode, call it like this:

cdata = iconeditor

cdata then contains your icon. You can save it to mat file and import it later to GUIDE's icon editor to continue editing.

Not sharing the source code is hardly sharing, especially when it is not maintained: p-code was generated back with R2007b, and I'm writing this in 2017!

Arabarra

I love this utility!
Only (but very big) con: It's a pity the code is protected: now with R2016a it doesn't work any longer, and I cannot try to fix the problem.

Greg

Greg (view profile)

I've been using and loving this utility for a long time, but it finally broke in R2016a. The previously-reported warning message is now an error:

The P-code file Z:\Matlab\icons\iconeditor.p was generated prior to MATLAB version 7.5
(R2007b) and is no longer supported. Use pcode to regenerate the file using MATLAB R2007b
or later.

Robert Moss

I'm running MATLAB Version: 8.1.0.604 (R2013a). When running the p-code file, I receive this:

Warning: The P-code file iconeditor.p was generated prior to MATLAB
version 7.5 (R2007b) and will not be supported in a future release.
Use pcode to regenerate iconeditor.p using MATLAB R2007b or later.

In addition to this warning, the pixels are not being colored properly when using the gui.

Would it be possible to get a freshly generated p-code file, or better yet, the actual code? I might be able to fix it then.

Daniel

Daniel (view profile)

John Thompson

Hello Elmar,

Great tool! What is the simplest way to export the gui doodle to an icon format (i.e. jpg)?

Thanks,
John

Elmar Tarajan

Elmar Tarajan (view profile)

@Y Mehta

In case when you want to place both, the icon and the text within the pushbutton - e.g. icon on left side and text on the right, so you can see how it looks - if there is enough space.

Especially I have created icons like a boarder around the text.

Changshun Deng

Y Mehta

Elmar,

This is a great utility and I am using it extensively. Thank you.

I observed that I can *right* click one of the top five pushbuttons and choose "set string" option. When I do so, it sets a string in the pushbutton. What's the purpose of that? When I export icons after writing those strings, the string has no effect on the icon.

jairo Ortiz

Paul Premakumar

Very nice tool! Very easy to use and the GUI is cool.

Elmar Tarajan

>> an error while selecting the standard
>> options again after other color options.
fixed!

Saim .X

i also encountered an error while selecting the standard options again after other color options. following error was encountered:

??? Error using ==> eval
Undefined function or method 'standard' for input arguments of type 'double'.

Error in ==> iconeditor>changecolormap at 477
set(h,'FaceVertexCData',reshape(repmat(eval([get(obj,'Label') '(48)'])',4,1),[3 192])');

??? Error while evaluating uimenu Callback

Saim .X

it's cool, GUI IS COOL.i would like to see the next version with more features of like
1. importing the icon or image.
2. put a help guide.
3. saving the file in icon format.
4. giving the user an option to select the size of the canvas/ or resolution etc.
5. Keep the work, waiting for ur nxt version
as it took time for me to understand the working.

Updates

1.1

New in 1.6
- convert color image to grayscale
- hot keys STRG+Y and STRG+Z for undo and redo
- code imprvements

+ "convert to grayscale" feature added
- bug fixed

MATLAB Release
MATLAB 7.9 (R2009b)
Acknowledgements

Inspired: Custom Pan/Zoom Icons

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video