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. Managed C++/CLI
  4. Create an image from a string in C++ .NET

Create an image from a string in C++ .NET

Scheduled Pinned Locked Moved Managed C++/CLI
graphicscsharpc++tutorialquestion
3 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.
  • U Offline
    U Offline
    USAFHokie80
    wrote on last edited by
    #1

    Hey everyone... I need some assistance getting an image from a string. I have an RTF text box into which a user can paste an image. However, I'd like to take this image out of the RTF and store is elsewhere. The System.Drawing.Image class has a function called FromString but I can't seem to figure out how to correctly use it. I've also looked at the System.Drawing.ImageConverter class but that hasn't helped either. Can anyone tell me how to get this image out of the rtf and into a bitmap object? Thanks, Sam.

    U N 2 Replies Last reply
    0
    • U USAFHokie80

      Hey everyone... I need some assistance getting an image from a string. I have an RTF text box into which a user can paste an image. However, I'd like to take this image out of the RTF and store is elsewhere. The System.Drawing.Image class has a function called FromString but I can't seem to figure out how to correctly use it. I've also looked at the System.Drawing.ImageConverter class but that hasn't helped either. Can anyone tell me how to get this image out of the rtf and into a bitmap object? Thanks, Sam.

      U Offline
      U Offline
      USAFHokie80
      wrote on last edited by
      #2

      OO... i mean the imageconverter class has a function called "FromString" - not the image class...

      1 Reply Last reply
      0
      • U USAFHokie80

        Hey everyone... I need some assistance getting an image from a string. I have an RTF text box into which a user can paste an image. However, I'd like to take this image out of the RTF and store is elsewhere. The System.Drawing.Image class has a function called FromString but I can't seem to figure out how to correctly use it. I've also looked at the System.Drawing.ImageConverter class but that hasn't helped either. Can anyone tell me how to get this image out of the rtf and into a bitmap object? Thanks, Sam.

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        There is a DrawToBitmap[^] method for control. Have you tried that? Edit: Aahh, I have seen that documentation[^] saying it is not fully functional with rich textbox. :(

        Navaneeth How to use google | Ask smart questions

        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