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. About images convertion

About images convertion

Scheduled Pinned Locked Moved C#
csharplearning
4 Posts 3 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.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    Hello everybody! I'm a beginner developer in .Net and I need to know if I can convert Bitmaps to Metafiles in anyway. ( The Save method of the Image Class does´nt work beetwen vectorial images and pixelized images ). Advanced Thanks!:-D

    B 1 Reply Last reply
    0
    • A Anonymous

      Hello everybody! I'm a beginner developer in .Net and I need to know if I can convert Bitmaps to Metafiles in anyway. ( The Save method of the Image Class does´nt work beetwen vectorial images and pixelized images ). Advanced Thanks!:-D

      B Offline
      B Offline
      Bill Priess
      wrote on last edited by
      #2

      I'm not totally sure if this will work (Graphics are not my strong point), but give it a shot: System.Drawing.Bitmap b = new System.Drawing.Bitmap("filename.bmp"); System.IO.MemoryStream ms = new System.IO.MemoryStream(); b.Save(ms, System.Drawing.Imaging.ImageFormat.Wmf); System.Drawing.Imaging.Metafile m = new System.Drawing.Imaging.Metafile(ms); I'm sure other people will have a better solution, but I think that will get you started. ;) HTH, Bill P. Oakland, CA

      L 1 Reply Last reply
      0
      • B Bill Priess

        I'm not totally sure if this will work (Graphics are not my strong point), but give it a shot: System.Drawing.Bitmap b = new System.Drawing.Bitmap("filename.bmp"); System.IO.MemoryStream ms = new System.IO.MemoryStream(); b.Save(ms, System.Drawing.Imaging.ImageFormat.Wmf); System.Drawing.Imaging.Metafile m = new System.Drawing.Imaging.Metafile(ms); I'm sure other people will have a better solution, but I think that will get you started. ;) HTH, Bill P. Oakland, CA

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Be carefull by using this functions i thing that you are trying to convert an image form the raster format to vertor one so this prosess is not good to be done automatically you will get a file wich contain a data but not the correct data you want to deal with ... this converssion will produce a file with a point object for each pexile in the image so it is a meaningless information , i hoop that you cane use some softwares for degitizing like erdas or what ever.... the prove of my speaking that if you try that code you will get a WMF file but try to zoom in the picture you will get the pexiles rectangulars .... Mhmoud Rawas ------------ Software Eng.

        A 1 Reply Last reply
        0
        • L Lost User

          Be carefull by using this functions i thing that you are trying to convert an image form the raster format to vertor one so this prosess is not good to be done automatically you will get a file wich contain a data but not the correct data you want to deal with ... this converssion will produce a file with a point object for each pexile in the image so it is a meaningless information , i hoop that you cane use some softwares for degitizing like erdas or what ever.... the prove of my speaking that if you try that code you will get a WMF file but try to zoom in the picture you will get the pexiles rectangulars .... Mhmoud Rawas ------------ Software Eng.

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          Thank you very much for reply my question, at the moment I haven't a right solution, but I'm going continous with my investigation. I will send information if I find something succesfully.:doh:

          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