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