-
Outputting images
Hiya, sorry for posting *again*, but the previous topic title was full >.<
I want to know, is it possible for me to either:
- Output an image to a file in between text outputs (I suppose this includes attaching an image from a file to a certain string or integer or whatever data type variable before use)
- Change settings in microsoft Word so that I can use <something> or something similar to call for insertion of a picture I want.
This would help me a lot, since I'm wanting to make a program that outputs both text and pictures in a coherent fashion during a loop that continues endlessly, or until I choose to end it, meaning if I can't get this to work it'll mean hours of copying/pasting pictures >.>
Thanks a bundle for any comment or help on this :).
-
Can't you embed pictures in RTF (meaning, I've just tried it and it works)?
-
I've never tried...I'm not that much of a wiz -_-
But thank you. I'll get it to work now that I know I can...
-
Okay, I see what you mean now, Salem.
But that's not what I was aiming for. I mean, my program outputs text into a file, but I want it to output pictures into the same file as well.
So far, I've tried to uncover how the code for Wordpad (.rtf) works with images...and I believe it saves it as a pile of hexadecimals, presumably giving the color for every pixel.
So far, any efforts to either disrupt the picture, copy it or otherwise change it (while having the .rtf files open with notepad, so I can see the code they use) has failed, only to result in having the exact same thing displayed in the .rtf when I opened it after editing.
Does anyone have a way to fix this so I can implement these pictures into my C++ code?
(for one's information, I want to use ofstream to output something like: text [picture] text text [picture][picture][picture] text text)
Thanks in advance.
-
Well its going to be like base64 or MIME encoding as used by HTML, only different.
I'm sure an actual RTF specification (say http://www.wotsit.org/) would tell you how to encode binary files as a series of printable characters.
-
Alright, I'll have a check on that. Thanks for the link :).