Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. read image

read image

Scheduled Pinned Locked Moved C#
tutorialcsharp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tunisia
    wrote on last edited by
    #1

    i would like to know how to read an image with c# if u can give me a code in witch there are an example developpement

    D C 2 Replies Last reply
    0
    • T tunisia

      i would like to know how to read an image with c# if u can give me a code in witch there are an example developpement

      D Offline
      D Offline
      Divyang Mithaiwala
      wrote on last edited by
      #2

      Do you mean this?


      Divyang Mithaiwala System Engineer & Software Developer

      1 Reply Last reply
      0
      • T tunisia

        i would like to know how to read an image with c# if u can give me a code in witch there are an example developpement

        C Offline
        C Offline
        conrado7
        wrote on last edited by
        #3

        You can use this code: private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Graphisc g = e.Graphisc; Bitmap bmp = new Bitmap("your_image.jpg"); g.DrawImage(bmp, 0, 0); } -- modified at 9:27 Thursday 16th March, 2006

        C 1 Reply Last reply
        0
        • C conrado7

          You can use this code: private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Graphisc g = e.Graphisc; Bitmap bmp = new Bitmap("your_image.jpg"); g.DrawImage(bmp, 0, 0); } -- modified at 9:27 Thursday 16th March, 2006

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Except that it will leak resources. The Bitmap reading code should ideally read to a member variable ( why do it every time ? ), or at a minimum, should be in a 'using' block. Christian Graus - Microsoft MVP - C++

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups