title: .NET C# - Both Bitmap and Image Loads Images Smaller than Expected
body: <p>I'm trying to process the typical 16 megapixel images from a modern camera.  Picking a random image, both the file system and my image editing software says the image is 4608 x 3456.  When I load the image in C# (VS2013 .Net 4.5) using either new Bitmap(filename) or Image.FromFile(filename), I get an image successfully loaded.  However, the resulting image has a size of 1613 x 1210.  Now, in some cases I want to create custom size thumbnails, and this will work ok.  However, I have another need where I detect "non normal" orientations and I simply want to flip/rotate for display, then save.</p>
  
  <p>Saving these images (without any adjustments, just load and save) creates a valid image on disk.  However, both the file system AND my image tool says the size is 1613 x 1210.</p>
  
  <p>How do I load the full size image and preserve all info back to disk?  Any ideas as to what I'm doing wrong?  I just want to rotate the image where needed, I don't want to shrink it!</p>
  
  <p>Here's a snippet of what I tried, as promised in a comment below:</p>
  
  <pre><code>Bitmap bm = new Bitmap(fileName);
  Image jpg = Image.FromFile(fileName);
  jpg.Save("e:\\test.jpg");
  bm.Save("e:\\test2.jpg");
  </code></pre>
  
  <p>Both files are smaller than their original size, and match the width and height the debugger shows for both in-memory images.</p>
  
  <p>Per a suggested answer, I tried this code but saw no difference in the results:</p>
  
  <pre><code>long width = 0;
  long height = 0;
  
  byte[] imageBytes = File.ReadAllBytes(fileName);
  using (MemoryStream ms = new MemoryStream(imageBytes))
  {
      Image jpg3 = Image.FromStream(ms);
      width = jpg3.Width;
      height = jpg3.Height;
      jpg3.Save("e:\\test3.jpg",System.Drawing.Imaging.ImageFormat.Jpeg);
  }
  </code></pre>
  
  <p>Thanks in advance.</p>
  
  <p>[EDIT] 
  User Error from a followup post:</p>
  
  <blockquote>
    <p>While it's true I do have a 4608x3456 size image of the very picture I
    am trying to load, I selected the wrong directory in my OpenFileDialog
    and was actually selected a, you guessed it, 1613 x 1210 version of
    this image. <em>The code WAS loading the full thing, the silly operator
    (me) was gumming it up.</em></p>
    
    <p>Before I post, I'll try the full-size image ... yeah, it works fine.</p>
  </blockquote>