|
-
Apr 2nd, 2000, 04:37 PM
#1
Thread Starter
Lively Member
Right. Stupid question...how do I create an icon from a bitmap or jpeg? Do I just need a good paint-type program or is there something in VB6 that'll do it for me? I'm at home and I've got bulk-standard win98.
Thanks muchly,
T
-
Apr 2nd, 2000, 05:02 PM
#2
transcendental analytic
Extract it from a imagelistcontrol
-
Apr 2nd, 2000, 06:59 PM
#3
Lively Member
Icons
One thing that you might like to try is downloading a free evaluation copy of MicroAngelo 98, to make .ico and .cur files, which can be used as mouse cursors and icons anywhere on your computer (try messing about in the control panel) as well as with VB. It's been pretty invaluable to me and I much recommend it - download it at any freeware/shareware site. A friend of mine noticed that (and I do not condone you doing this ... ahem ...) if you hold onto the setup files you can keep reinstalling it after the 30-day evaluation period. The computer doesn't know any better and just puts it back on your computer as if it had never been there, restarting the counter at 0 days...
Sam
-
Apr 2nd, 2000, 11:05 PM
#4
transcendental analytic
Put an imagelistcontrol and a picturebox into your form. Size it 32*32 and load a picture (32*32) into it use this code:
Code:
Icon = Imagelist1.ListImages.Add(, , Picture1.picture).ExtractIcon
Imagelist1.clear
-
Apr 3rd, 2000, 05:43 AM
#5
Hyperactive Member
if you have a bmp file just rename the file extention to .ico and becomes an icon (doesn't work with jpg or gif)
or
go here:
http://www.axdn.com
they have good software.
-
Apr 3rd, 2000, 06:18 AM
#6
Junior Member
Hi,
Creating an icon from a bmp or any other image in VB is not
easy if you want to create icons in any format and any colors.
You can do it with an ImageList, but you'll only get 16x16 or 32x32 16 colors icons (and have to use a monster ocx...)
But if you want more with icons in VB, just take a look at
Http:/vbaccelerator.com where you'll find some interesting (complex)code about working with icons (any format and colors).
Claude
P.S: changing the extension of a bitmap(bmp) to .ico will NOT transform your bitmap into an icon (bmp and icons are completely different)even if it works sometimes with VB.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|