Results 1 to 9 of 9

Thread: Ico > BMP

  1. #1

    Thread Starter
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    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

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  3. #3
    Junior Member
    Join Date
    Mar 2000
    Location
    Ede, Gelderland, Nederland
    Posts
    26

    Easy!

    Code:
    print "Content-type: text/html "; 
    print "Hello World!"
    LauPro

  4. #4
    Junior Member
    Join Date
    Mar 2000
    Location
    Ede, Gelderland, Nederland
    Posts
    26

    Easy!

    Code:
    Picture1.Autosize = True
    Picture1.Picture = LoadPicture("C:\MyBitmap.bmp")
    SavePicture(Picture1.Image, "C:\MyIcon.ico")
    LauPro

  5. #5
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  6. #6
    Guest
    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.

  7. #7
    Junior Member
    Join Date
    Mar 2000
    Location
    Ede, Gelderland, Nederland
    Posts
    26

    Your right!

    Code:
    Picture1.visible = True
    Picture1.Autosize = True
    Picture1.Picture = LoadPicture("C:\MyIcon.ico")
    SavePicture(Picture1.Image, "C:\MyBitmap.bmp")
    LauPro

  8. #8

    Thread Starter
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986

    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\_

  9. #9
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ottawa,ON,Canada
    Posts
    217
    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
  •  



Click Here to Expand Forum to Full Width