|
-
Apr 8th, 2000, 08:55 AM
#1
Thread Starter
Frenzied Member
Can anyone explain me how to convert a ico file to a bmp file? I need it for a Icon extractor > yeah I know it allready exists, but it's for my own practice 
Thanx anyone who can help me!
Jop
-
Apr 8th, 2000, 05:24 PM
#2
transcendental analytic
Load the icon into a picturebox, Use Bitblt to copy your icon to another picturebox, set the pictureboxproperty picture to its image property and save it with savepicture
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 8th, 2000, 06:51 PM
#3
Junior Member
Easy!
Code:
print "Content-type: text/html ";
print "Hello World!"
-
Apr 8th, 2000, 06:53 PM
#4
Junior Member
Easy!
Code:
Picture1.Autosize = True
Picture1.Picture = LoadPicture("C:\MyBitmap.bmp")
SavePicture(Picture1.Image, "C:\MyIcon.ico")
-
Apr 8th, 2000, 06:58 PM
#5
transcendental analytic
LAupro, ICo2bmp not bmp2ico, thats not that easy to convert a bmp to ico either, The file will be in bmp format with an ico extention,
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Apr 8th, 2000, 09:47 PM
#6
You could also load a bmp into a picturebox and
use the extracticon method to set a hidden button's
mouseicon property to the bmp. Then load the mouseicon
into an imagelist and load the imagelist(1) into another
picturebox and then use the savepicture function.
it isn't the best way, but hey, it works.
-
Apr 8th, 2000, 11:22 PM
#7
Junior Member
Your right!
Code:
Picture1.visible = True
Picture1.Autosize = True
Picture1.Picture = LoadPicture("C:\MyIcon.ico")
SavePicture(Picture1.Image, "C:\MyBitmap.bmp")
-
Apr 8th, 2000, 11:58 PM
#8
Thread Starter
Frenzied Member
Thanks guys!
Ok thanks for your help guys!
But I have another question:
How can I display a " in a textbox? Because if I just do
txt1.Text = " & cool1.Text
it doesn't work.
I've also tried the escape characters from Javascript ( \ ) and ' but neither works.
In other words, what's the escape character for VB?
Thanks for your help guys!
_/Jop\_
-
Apr 9th, 2000, 01:25 AM
#9
Addicted Member
txt1.Text = Chr$(34) & cool1.Text
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
|