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. How do I view a jpg without using Image.FromStream

How do I view a jpg without using Image.FromStream

Scheduled Pinned Locked Moved C#
questiongraphicstutorial
4 Posts 2 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
    TimSWatson
    wrote on last edited by
    #1

    Hey Does anyone know how to view a jpg stored in a stream on a control such as a picturebox without having to first convert it to a BITMAP using Image.FromStream? Thanx

    L 1 Reply Last reply
    0
    • T TimSWatson

      Hey Does anyone know how to view a jpg stored in a stream on a control such as a picturebox without having to first convert it to a BITMAP using Image.FromStream? Thanx

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      why would one want that? two ways: 1. save the stream to a file, then use Image.FromFile or PictureBox.Location 2. create your own JPEG decoder (the inverse of this[^], i.e. implement Image.FromStream yourself. It doesn't make much sense to me. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      Nil Volentibus Arduum


      T 1 Reply Last reply
      0
      • L Luc Pattyn

        why would one want that? two ways: 1. save the stream to a file, then use Image.FromFile or PictureBox.Location 2. create your own JPEG decoder (the inverse of this[^], i.e. implement Image.FromStream yourself. It doesn't make much sense to me. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        Nil Volentibus Arduum


        T Offline
        T Offline
        TimSWatson
        wrote on last edited by
        #3

        Maybe I was a bit vague. I am recieving a stream of jpegs from a number of cameras. I want to show these on screen and I was wondering if there was a way of doing this without having to first uncompress the jpg using Image.FromStream as this is a slow process.

        L 1 Reply Last reply
        0
        • T TimSWatson

          Maybe I was a bit vague. I am recieving a stream of jpegs from a number of cameras. I want to show these on screen and I was wondering if there was a way of doing this without having to first uncompress the jpg using Image.FromStream as this is a slow process.

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          TimSWatson wrote:

          Maybe I was a bit vague.

          indeed.

          TimSWatson wrote:

          without having to first uncompress

          when an image is visible on the display, you see individual pixels, hence it has been decompressed somehow somewhere. There is no way around that assuming a standard PC system is used. The only thing you could consider is creating your own JPEG decoder trading quality for speed; however you are likely to discover loosing quality is easier than gaining speed. :)

          Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


          Nil Volentibus Arduum


          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