Create an image from a string in C++ .NET
-
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.
-
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.
OO... i mean the imageconverter class has a function called "FromString" - not the image class...
-
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.
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