Thread: [Newbie] Zoom + Recent Files

  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    16

    [Newbie] Zoom + Recent Files

    Does anyone know where i can find a code that make a zoom on an image and a code to open recent files?

  2. #2
    Banal internet user
    Join Date
    Aug 2002
    Posts
    1,380
    You're going to have to be more specific.

    In a WinForms application?

  3. #3
    Registered User
    Join Date
    Feb 2005
    Posts
    16
    I'm doing a pocket pc application. There's only a picture box cause i cannot make an mdi form.
    The application must open big .tiff image like 7/8 MB
    This is the code that open the image (i hope
    -PrimeRecente and SecondoRecente are the buttons for the recent files...
    Code:
    ....
    private String NomeFile;
    .....
    
    private void Apri_Click(object sender, System.EventArgs e)
    		{
    			SecondoRecente.Text=NomeFile;
    			OpenFileDialog fileChooser=new OpenFileDialog();
    			fileChooser.Filter="tiff images (*.tiff)|*.tiff";
    			DialogResult result = fileChooser.ShowDialog();
    			//PictureBox.Image = Image.FromFile(fileChooser.FileName);
    			//PictureBox.Image = new Bitmap(fileChooser.FileName);
    			try 
    			{
    				PictureBox.Image = new System.Drawing.Bitmap(fileChooser.FileName);
    			}
    			catch 
    			{
    				ArgumentException eccezione = new ArgumentException();
    			}
    
    			PrimoRecente.Text=fileChooser.FileName;
    			NomeFile = fileChooser.FileName;
    This is the code for the zoom i hope

    Code:
    private void Zoom50_Click(object sender, System.EventArgs e)
    		{
    //			PictureBox.Width = PictureBox.Width - (PictureBox.Width * 0.5);
    //			PictureBox.Height = PictureBox.Height - (PictureBox.Height * 0.5);
    //			Ridisegna();
    		}
    
    private Sub Ridisegna(){
    //					   PictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
    //					   if ((PictureBox.Width >= theScreen.width)||(PictureBox.Height >= thscreen.height)){
    //						 vScrollBar.Maximum = PictureBox.Height + hScrollBar.Height; 
    //						 hScrollBar.Maximum = PictureBox.Width + vScrollBar1.Width;
    //						 panel1.Size = PictureBox.Size;
    //						 hScrollBar.Value = 0;
    //						 vScrollBar.Visible = True;
    //						 hScrollBar.Visible = True;}
    //					   else{
    //						 vScrollBar1.Visible = False;
    //						 hScrollBar1.Visible = False; }
    //					   PictureBox.Ridisegna();
    //
    //		}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Create Copies of Files
    By Kanshu in forum C++ Programming
    Replies: 13
    Last Post: 05-09-2009, 07:53 AM
  2. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 08:44 AM
  3. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  4. ASP + Files + Most Recent
    By JaWiB in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 07-09-2003, 05:12 PM
  5. opening multiple files sequentially
    By moonwalker in forum C Programming
    Replies: 5
    Last Post: 08-20-2002, 09:57 PM