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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. JPEG Decoder\Encoder in C#

JPEG Decoder\Encoder in C#

Scheduled Pinned Locked Moved C#
csharpc++question
6 Posts 3 Posters 1 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.
  • G Offline
    G Offline
    Gilad Kapelushnik
    wrote on last edited by
    #1

    Hi, I've searched high and low and couldn't find any source code for encoding\decoding JPEG files for C# (although found plenty in C\C++) I know that this format is widely supported but I would like to have the source code for reading such a format. Any ideas ?

    0 D 2 Replies Last reply
    0
    • G Gilad Kapelushnik

      Hi, I've searched high and low and couldn't find any source code for encoding\decoding JPEG files for C# (although found plenty in C\C++) I know that this format is widely supported but I would like to have the source code for reading such a format. Any ideas ?

      0 Offline
      0 Offline
      0x3c0
      wrote on last edited by
      #2

      If you're just trying to display it on-screen or get the property items, the System.Drawing.Image class should be all you need

      Between the idea And the reality Between the motion And the act Falls the Shadow

      G 1 Reply Last reply
      0
      • G Gilad Kapelushnik

        Hi, I've searched high and low and couldn't find any source code for encoding\decoding JPEG files for C# (although found plenty in C\C++) I know that this format is widely supported but I would like to have the source code for reading such a format. Any ideas ?

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        You already have some source, all you need to do is convert the code from C/C++ to C#. You'll have to do this by hand since there are no converters to rewrite C/C++ code to C#.

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008
        But no longer in 2009...

        G 1 Reply Last reply
        0
        • 0 0x3c0

          If you're just trying to display it on-screen or get the property items, the System.Drawing.Image class should be all you need

          Between the idea And the reality Between the motion And the act Falls the Shadow

          G Offline
          G Offline
          Gilad Kapelushnik
          wrote on last edited by
          #4

          The deal is I need the code as I want to develop a variant of the original JPEG format. I want the source code because I don't want to start from scratch.

          1 Reply Last reply
          0
          • D Dave Kreskowiak

            You already have some source, all you need to do is convert the code from C/C++ to C#. You'll have to do this by hand since there are no converters to rewrite C/C++ code to C#.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008
            But no longer in 2009...

            G Offline
            G Offline
            Gilad Kapelushnik
            wrote on last edited by
            #5

            I thought about porting the code but since the source in C is around 15000 lines filled of complex memory and mathematical operations I have no doubt that doing porting without mistakes will be quite a challenge.

            D 1 Reply Last reply
            0
            • G Gilad Kapelushnik

              I thought about porting the code but since the source in C is around 15000 lines filled of complex memory and mathematical operations I have no doubt that doing porting without mistakes will be quite a challenge.

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              I didn't say it would be easy, just that it was what you had to do! :-D You really SHOULD do it this way because, as you said above, you want to develop your own variant of JPEG. Well, you're going to have to understand the code in order to update it with your implementation changes. There's no better way than rewriting it in your own language.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008
              But no longer in 2009...

              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