Paint.NET

Welcome to the Paint.NET forum!
It is currently Sun Nov 22, 2009 10:44 am

All times are UTC


Forum rules


Questions or problems with plugin installation? Click here.



Post new topic Reply to topic  [ 200 posts ]  Go to page 1, 2, 3, 4, 5 ... 14  Next
Author Message
 Post subject: Icon, Cursor, and Animated Cursor Format plug-in
PostPosted: Thu Mar 23, 2006 5:33 am 
Offline

Joined: Mon Mar 06, 2006 9:41 pm
Posts: 62
Here is my icon and cursor format plug-in for Paint.NET

http://www.evanolds.com/IcoCur.zip

Unzip it and put IcoCur.dll in the "FileTypes" folder in the Paint.NET directory.

There are a few screenshots on this page:
http://www.evanolds.com/pdnicocur.html
although not too much to show for a file format plug-in.

It will load and save .ico, .cur and .ani files (.ani as of July 29, 2006).

When loading from an icon or cursor file that contains multiple images, you are given a prompt and allowed to choose which image to load. It always bugged me when there would be 3 or so images in an icon file and other image editors would just auto-load the low resoultion 8x8 one or something like that, so I added the feature to choose.

Although I've never seen any, I suppose there could be icons with 16-bit image data; there is support for this, albeit untested. Please let me know what you think.


Last edited by evanolds on Mon Feb 11, 2008 2:56 am, edited 3 times in total.

Top
 Profile  
 
 Post subject: Possibility for a future release
PostPosted: Tue Mar 28, 2006 6:20 pm 
Offline
User avatar

Joined: Tue Mar 28, 2006 6:18 am
Posts: 168
Nice Plugin. The ability to open icons/cursors is a nice feature to have in PDN. One suggestion though, When I try to save an icon, it saves it as a 16/16 32bit. it would be nice if you had the option of what format to save an image as. Or, this one would be a bit more complex, an option to save an icon complete with multiple formats. I'm fairly new to PDN and .NET programming so I'm not sure if this is actually possible. Possibly either the ability to save multiple png/bmp etc. files into one icon or, have the different formats all displayed on one image. Again, I'm new to this so I may just be missing something.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 29, 2006 12:26 am 
Offline

Joined: Mon Mar 06, 2006 9:41 pm
Posts: 62
I was debating the option to allow saving with different resolutions and color modes. Actually, I guess I still am debating. I may decide to do it later since it would be nice to have both low and high resolution icons in the same .ico file, in fact this is sort of the convention for icon files.

Fairly busy right now, but I'll see if I can get around to it in the future (don't expect it too soon).

Just FYI, icon and cursors internally are basically multiple "limited bitmaps". It sounded like when you said "different formats" you were basically desiring different resolutions and color modes (i.e. ability to export 8-bit icons). This can be done. Embedding any type of compressed image or other image format within an icon cannot be done.

One last thing, you said...
Quote:
it saves it as a 16/16 32bit
You mean 32x32 @ 32-bit, right? It should export everything as a 32x32.


Last edited by evanolds on Wed Aug 08, 2007 5:33 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 30, 2006 8:23 pm 
Offline
User avatar

Joined: Tue Mar 28, 2006 6:18 am
Posts: 168
Quote:
"It sounded like when you said "different formats" you were basically desiring different resolutions and color modes (i.e. ability to export 8-bit icons)."


Yeah, sorry, that's what I meant.

Quote:
" You mean 32x32 @ 32-bit, right? It should export everything as a 32x32."


32x32 it is. Sorry about the missinformation.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 3:08 am 
Offline
User avatar

Joined: Tue Mar 28, 2006 6:18 am
Posts: 168
I meant to post this before but I didn't have the time to set it up.

With the multiple resolutions/sizes of the icon file. Would a mapped image work?
Like this:
Image
without the colors/text of course.

This is a really good plugin that you've got going.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 17, 2006 9:29 pm 
Offline
Paint.NET Developer
User avatar

Joined: Tue Jul 19, 2005 6:45 pm
Posts: 48
Location: Redmond, WA
evanolds wrote:
I was debating the option to allow saving with different resolutions and color modes. Actually, I guess I still am debating. I may decide to do it later since it would be nice to have both low and high resolution icons in the same .ico file, in fact this is sort of the convention for icon files.


I really need to be able to make icons in arbitrary sizes. I really do need to be able to save icons that are 190x35 or any other arbitrary dimension.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 18, 2006 3:12 am 
Offline

Joined: Wed Mar 08, 2006 3:58 am
Posts: 362
Thanks to your plug-in, I made part of my own cursor set thingy. Here are some examples:

Image
Image

But pointer shadow doesn't work for anything except for the default ones <_<. Great plug-in.

_________________
Image
I built my first computer at age 11!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 19, 2006 11:27 pm 
Offline
User avatar

Joined: Sat Mar 11, 2006 3:13 am
Posts: 20
Location: Colorado Springs, CO
I made some really lazy cursors. Mostly just red dots...


Last edited by agonnazar on Sun May 21, 2006 1:47 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 20, 2006 6:48 pm 
Offline

Joined: Mon Mar 06, 2006 9:41 pm
Posts: 62
Tom Jackson wrote:
I really need to be able to make icons in arbitrary sizes. I really do need to be able to save icons that are 190x35 or any other arbitrary dimension.


I'll probably add in the ability to just save the icon with whatever resolution it has, as opposed to forcing a resize. I'll see if I can get this into the next version. (Does windows Vista render non-square icons in a non-square fashion? I saved a 190x35 icon in my old image editor, since it had support for this, and of course it just shows up as stretched to square in any windows explorer view, although programs like irfanview load it in as 190x35. Anyway, just curious as to how the icon support in Vista is.)

Born2killx wrote:
But pointer shadow doesn't work for anything except for the default ones


I think that's because the system expects any "shadow-like" effect to be contained within the alpha channel, since all the cursors currently save as 32-bit. When I get <32 bpp support in, then the pointer shadows should work, but just FYI until then, you can design the shadow in PDN if you wish. There's probably a tutorial on layer shadows somewhere. But, again, this should change when you are allowed to save lower color depth files.

crosswalker wrote:
With the multiple resolutions/sizes of the icon file. Would a mapped image work?


I'm not 100% sure what you're asking here. Are you saying that if you had such an image in PDN, could my plugin recognize the different regions and save each of those images as 128x128, 64x64, 48x48... etc? That's probably unlikely, but if you had each in a separate layer, with just transparent pixels around the images, then I might be able to add a feature to recognize when a layer contains an image that's smaller than the canvas size, or something like that. Anyway, we'll see about that one, I was kind of planning to have the next version just have capabilities for saving different dimension/resoultion versions of the same image... sort of hard to explain what I mean.

I'll see if I can get something out mid-May (a bit busy).


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 21, 2006 5:00 pm 
Offline
User avatar

Joined: Tue Mar 28, 2006 6:18 am
Posts: 168
ooo, I like the seperate layer idea alot better than mine. which btw was the region recognition type of thing. wow, I'm sounding pretty stupid on this thread.

_________________
Image


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 22, 2006 7:01 am 
Offline

Joined: Sat Apr 22, 2006 6:45 am
Posts: 3
hey, this is a really good plugin and should be included with PDN with the initial installation.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 06, 2006 4:28 pm 
Offline
User avatar

Joined: Wed Nov 30, 2005 11:40 pm
Posts: 1267
Location: Middle Tennessee
i made a set of cursors (and a lot of icons for small applications that i won't show here). Its all nice and blue! (God bless gradients.)

Also, pixel by pixel editing was done for the link select, and some other cursors (including alpha) (You can't really control gradients that efficiently that small on any raster graphics program.)

The cursors are in the following ZIP file: CursorSet.zip

_________________
Image
Kitteh all growed up :_(


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 20, 2006 1:41 pm 
Offline

Joined: Sat May 20, 2006 1:38 pm
Posts: 7
Hi :)

Is there a way to confgure this plugin so it doesn't degrade during the conversion? When I save something as .ico, it looks blurry compared to the original file.


Top
 Profile  
 
 Post subject: Source Code
PostPosted: Sat May 20, 2006 4:35 pm 
Offline

Joined: Sat May 20, 2006 4:19 pm
Posts: 3
In the spirit of Paint.Net, will you be releasing the source code?

Great Plugin!
Thanks for sharing.


Top
 Profile  
 
 Post subject: Version 2.0
PostPosted: Sun Jun 11, 2006 6:33 am 
Offline

Joined: Mon Mar 06, 2006 9:41 pm
Posts: 62
Ok, I've released the next version. In this version you can save 8-bit and 32-bit icons and cursors. The cursor saving functionality is the same as the previous version, other than the addition of an allowed 8-bit mode.

The icon saver now has the following options dialog:
Image

Many icon files contain multiple resolution and color depth versions of the same image, so if you are authoring this type of icon, you can design the image at whatever resolution you like and then choose the resolutions/color depths to save in the file just by checking the check boxes. PDN's resampling and quantizing (color depth changing) capabilites are utilized so that this is done in an automated fashion.

If you wish to author an icon file with multiple DIFFERENT images in one file you can do this too. For example, some icons have one image for the 32x32 item, and then a different (but often similarly themed) image for the 16x16 since a resize of the 32x32 to 16x16 may be too lossy. To export different images in one file, design each image on a separate layer, with COMPLETELY transparent rows and columns to the left and below your layer's image.

For example, if you're making an icon that will have a 32x32 image and a different 16x16 image in the same file, work with a 32x32 canvas and design the 32x32 image on one layer. Then, on a separate layer (clear it completely to start) design a 16x16 image in the upper left corner. Alternatively, design each image separately and save them as 32x32, 16x16, etc. PDN files and import them as layers into a new document, and then save them. You must work with a canvas size of 256x256 or smaller to save each layer separately (saving the "Merged Image" does not have this restriction) and each layer should have dimensions that are multiples of 8.

Tom Jackson wrote:
I really need to be able to make icons in arbitrary sizes.

There are still resolution restrictions, but if the icon image you are working with is 256x256 or smaller, then you can save it with whatever dimensions it has.

denzilla wrote:
Is there a way to confgure this plugin so it doesn't degrade during the conversion?

If you design an image with NxN dimensions (where N is just some number<=256) and then save it as NxN (i.e. no resizing) the plug-in should now take it as it is, rather than running it through PDN's super sampler, which caused the "blur". Let me know if this addresses your problem.

alleyjo wrote:
In the spirit of Paint.Net, will you be releasing the source code?

I won't be releasing the source code right now, possibly after one more update (it will probably need updating when PDN has major version changes; also I'm thinking of adding .ANI support).

Download link is the same as before:
http://www.evanolds.com/IcoCur.zip

Please post bugs/comments.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 200 posts ]  Go to page 1, 2, 3, 4, 5 ... 14  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 22 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
You cannot post attachments in this forum

Search for:
Jump to:  
Hosted by Forumer & phpBB

Get your Forumer™ today!

Adding a forum to your website is a great way to get return visitors.

» Get your own Free Forum!

Terms of Use

Privacy Policy

Report Abuse

Copyright © 2003-2009 Forumer. All Rights Reserved. | Copyright © paint.NET