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 / C++ / MFC
  4. Convert a text file into image (tiff file)

Convert a text file into image (tiff file)

Scheduled Pinned Locked Moved C / C++ / MFC
6 Posts 4 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.
  • K Offline
    K Offline
    Kiran Pinjala
    wrote on last edited by
    #1

    Hi Is there a way to convert a text file into an image file(tiff file). Thank you

    Saadhinchaali

    N S H 3 Replies Last reply
    0
    • K Kiran Pinjala

      Hi Is there a way to convert a text file into an image file(tiff file). Thank you

      Saadhinchaali

      S Offline
      S Offline
      Sarath C
      wrote on last edited by
      #2

      :sigh: 1. Open your text file in notepad. 2. Alt+Print Screen, 3. Copy to your favorite image editor save as TIFF(Paint .NET is free and a nice choice) Normally Text file contains ASCII characters and TIFF file contains binary data with image headers, pixel data and any other associated information related to TIFF.... Please make your question clear. What's the content of your text file? and how you want to be converted?

      -Sarath. "Great hopes make everything great possible" - Benjamin Franklin

      My blog - Sharing My Thoughts

      N K 2 Replies Last reply
      0
      • K Kiran Pinjala

        Hi Is there a way to convert a text file into an image file(tiff file). Thank you

        Saadhinchaali

        N Offline
        N Offline
        Nishad S
        wrote on last edited by
        #3

        Tritva wrote:

        Is there a way to convert a text file into an image file(tiff file).

        If you mean to do it programmatically, you need to draw the text to some memory DCs and save it to bitmap. You can use BMGLib[^] to save to TIFF file.

        - ns -

        1 Reply Last reply
        0
        • S Sarath C

          :sigh: 1. Open your text file in notepad. 2. Alt+Print Screen, 3. Copy to your favorite image editor save as TIFF(Paint .NET is free and a nice choice) Normally Text file contains ASCII characters and TIFF file contains binary data with image headers, pixel data and any other associated information related to TIFF.... Please make your question clear. What's the content of your text file? and how you want to be converted?

          -Sarath. "Great hopes make everything great possible" - Benjamin Franklin

          My blog - Sharing My Thoughts

          N Offline
          N Offline
          Nishad S
          wrote on last edited by
          #4

          Nice steps... :laugh:

          - ns -

          1 Reply Last reply
          0
          • S Sarath C

            :sigh: 1. Open your text file in notepad. 2. Alt+Print Screen, 3. Copy to your favorite image editor save as TIFF(Paint .NET is free and a nice choice) Normally Text file contains ASCII characters and TIFF file contains binary data with image headers, pixel data and any other associated information related to TIFF.... Please make your question clear. What's the content of your text file? and how you want to be converted?

            -Sarath. "Great hopes make everything great possible" - Benjamin Franklin

            My blog - Sharing My Thoughts

            K Offline
            K Offline
            Kiran Pinjala
            wrote on last edited by
            #5

            HI, Thats the esaiest way. Thank you for ur reply.

            Saadhinchaali

            1 Reply Last reply
            0
            • K Kiran Pinjala

              Hi Is there a way to convert a text file into an image file(tiff file). Thank you

              Saadhinchaali

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              You can draw your text to memory DCs and then you can use of CImage class for save it(jpg,gif,...).

              Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )

              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