Question:

windows 3.0 logo gif files.

by Guest8531  |  12 years, 9 month(s) ago

0 LIKES UnLike

I need windows 3.0 logo for some sort of presentation at college. Someone please tell me where to get windows 3.0 logo gif files.

 Tags: 3.0, Files, gif, LOGO, Windows

   Report

2 ANSWERS

  1. Guest580

    private void button2_Click(object sender, System.EventArgs e)

    {

    // Displays a SaveFileDialog so the user can save the Image

    // assigned to Button2.

    SaveFileDialog saveFileDialog1 = new SaveFileDialog();

    saveFileDialog1.Filter = "JPeg Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif";

    saveFileDialog1.Title = "Save an Image File";

    saveFileDialog1.ShowDialog();


    // If the file name is not an empty string open it for saving.

    if(saveFileDialog1.FileName != "")

    {

    // Saves the Image via a FileStream created by the OpenFile method.

    System.IO.FileStream fs =

    (System.IO.FileStream)saveFileDialog1.OpenFile();

    // Saves the Image in the appropriate ImageFormat based upon the

    // File type selected in the dialog box.

    // NOTE that the FilterIndex property is one-based.

    switch(saveFileDialog1.FilterIndex)

    {

    case 1 :

    this.button2.Image.Save(fs,

    System.Drawing.Imaging.ImageFormat.Jpeg);

    break;


    case 2 :

    this.button2.Image.Save(fs,

    System.Drawing.Imaging.ImageFormat.Bmp);

    break;


    case 3 :

    this.button2.Image.Save(fs,

    System.Drawing.Imaging.ImageFormat.Gif);

    break;

    }


    fs.Close();

    }

    }

  2. Guest3519

    private void ConstructFromResourceSaveAsGif(PaintEventArgs e)

    {

    // Construct a bitmap from the button image resource.

    Bitmap bmp1 = new Bitmap(Button.class.ToType(), "Button.bmp");

    // Save the image as a GIF.

    bmp1.Save("c:\\button.gif", System.Drawing.Imaging.ImageFormat.get_Gif());

    // Construct a new image from the GIF file.

    Bitmap bmp2 = new Bitmap("c:\\button.gif");

    // Draw the two images.

    e.get_Graphics().DrawImage(bmp1, new Point(10, 10));

    e.get_Graphics().DrawImage(bmp2, new Point(10, 40));

    // Dispose of the image files.

    bmp1.Dispose();

    bmp2.Dispose();

    } //ConstructFromResourceSaveAsGif

Sign In or Sign Up now to answser this question!

Question Stats

Latest activity: 12 years, 11 month(s) ago.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.