Icon

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dean

    #1

    Icon

    Hi everyone,

    Does anyone know how to save an icon I know how to save a text file but
    I don't know how to creat a icon file.

    OR

    Does anyone knows how to save an image like if I load a image then I
    strech that image and then when I click Save it would save the image in
    "C:"



    Could you please tell me how to do it, it will trill my little heart!



    Dean

  • Dean

    #2
    Re: Icon

    Oh yea I am using VB.net

    Comment

    • Carlos J. Quintero [VB MVP]

      #3
      Re: Icon

      You have Image.Save(...) , Bitmap.Save(... ), Icon.Save(...). Some Save
      methods requires a filename while others require an output stream. See the
      docs.

      --

      Best regards,

      Carlos J. Quintero

      MZ-Tools: Productivity add-ins for Visual Studio
      You can code, design and document much faster:
      MZ-Tools has a single goal: To make your everyday programming life easier. As an add-in to several Integrated Development Environment (IDEs) from Microsoft, MZ-Tools adds new menus and toolbars to them that provide many new productivity features.



      "Dean" <simondevries94 @gmail.com> escribió en el mensaje
      news:1143115418 .799974.67510@i 40g2000cwc.goog legroups.com...[color=blue]
      > Hi everyone,
      >
      > Does anyone know how to save an icon I know how to save a text file but
      > I don't know how to creat a icon file.
      >
      > OR
      >
      > Does anyone knows how to save an image like if I load a image then I
      > strech that image and then when I click Save it would save the image in
      > "C:"
      >
      >
      >
      > Could you please tell me how to do it, it will trill my little heart!
      >
      >
      >
      > Dean
      >[/color]


      Comment

      • Dean

        #4
        Re: Icon

        Ok So maby I don't know the code to put in text so well (I coppied it
        from a book ) can you please give me the full code??

        Comment

        • Herfried K. Wagner [MVP]

          #5
          Re: Icon

          "Dean" <simondevries94 @gmail.com> schrieb:[color=blue]
          > Does anyone know how to save an icon I know how to save a text file but
          > I don't know how to creat a icon file.[/color]

          Check out the 'Icon' class and its 'Save' method.
          [color=blue]
          > Does anyone knows how to save an image like if I load a image then I
          > strech that image and then when I click Save it would save the image in
          > "C:"[/color]

          You are certainly looking for the 'Bitmap' class.

          Resizing an image with a certain interpolation mode
          <URL:http://dotnet.mvps.org/dotnet/faqs/?id=interpolati onmode&lang=en>

          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://classicvb.org/petition/>

          Comment

          • Armin Zingler

            #6
            Re: Icon

            "Dean" <simondevries94 @gmail.com> schrieb[color=blue]
            > Hi everyone,
            >
            > Does anyone know how to save an icon I know how to save a text file
            > but I don't know how to creat a icon file.[/color]

            System.Drawing. Icon.Save
            [color=blue]
            > OR
            >
            > Does anyone knows how to save an image like if I load a image then I
            > strech that image and then when I click Save it would save the image
            > in "C:"[/color]

            Use image.fromfile to load the image. Create a new bitmap in the destination
            size. Use graphics.fromim age to get create a graphics object to draw the
            first image on. Save the destination image by calling it's save method.


            Armin

            Comment

            Working...