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. Bitmap from MetaFile

Bitmap from MetaFile

Scheduled Pinned Locked Moved C#
csharpc++graphicshardwarehelp
1 Posts 1 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.
  • 3 Offline
    3 Offline
    3green
    wrote on last edited by
    #1

    Hi, Given a Bitmap that is embedded into a windows metafile (WMF) thereby allowing it to be added to a rich text box. I have been trying to recreate the bitmap from the WMF. So assuming I have a windows metafile that is represented in the RichText box as the control string : "{\pict\wmetafile8\picw[N]\pich[N]\picwgoal[N]\pichgoal[N] [BYTES]}" where BYTES are the HEX representation of an image. How would I convert this back into a bitmap? My thought was to use the MetaFile class constructing it from a stream derived somehow from the BYTES above, and then as the Metafile class is an Image it can be transformed into a Bitmap which is also an Image. Any help would be very useful as I keep hitting a brick wall, but as a convert from C++, my C# isnt that good yet.

    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