none
How can convert a nfo file to a image file(png,jpg...)

    Question

  • Hi all,

    I want to convert a .nfo file to a .png file,but no any idea in my mind.I don't know how to start to do this work,

    can anyone give me a idea about this work.

    many thx for your answer

    • Edited by LeoGaGa Monday, February 14, 2011 1:05 AM
    Saturday, February 12, 2011 3:26 AM

Answers

  • Hi LeoGaGa

    Based on my knowledge , the  Basic procedure is this: Write text to a bitmap and then convert bitmap into some supported format.

    Check SDK documentation for CFbsBitmap, CFbsBitGc and CImageEncoder.

    You can learn from the following reference:

    This article tells about how to convert your swf movie file to image and can download the source code :

    http://www.codeproject.com/KB/aspnet/swf2img.aspx

     

    If you have solved your issue, please mark the useful reply as answer.

    Best regards,

    Lucy

     


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, February 14, 2011 9:09 AM
  • Hi lucky,

    thanks for your reminding,this problem i have solved some days before and use FreeType lib can get the

    shape from some font files, then can draw its shape with opencv.

     

    Tuesday, February 22, 2011 7:25 AM

All replies

  • Isn't an .nfo file just a text file? It's not an image file, is it?
    Saturday, February 12, 2011 4:58 AM
  • The first step is identifying what the .nfo file format is.

    This is not a Visual C++ language question, or even a Microsoft specific question as PNG is not an official Microsoft technology as far as I know.  You should try asking this question on your favorite general C++ programming forum.

     


    SDET Windows C++ CodeGenerationTeam - Performance
    Saturday, February 12, 2011 5:05 AM
  • yes,it's not a image file.

    http://en.wikipedia.org/wiki/.nfo 

    Saturday, February 12, 2011 5:47 AM
  • thx for your answer.
    Saturday, February 12, 2011 5:47 AM
  • Hi LeoGaGa

    Based on my knowledge , the  Basic procedure is this: Write text to a bitmap and then convert bitmap into some supported format.

    Check SDK documentation for CFbsBitmap, CFbsBitGc and CImageEncoder.

    You can learn from the following reference:

    This article tells about how to convert your swf movie file to image and can download the source code :

    http://www.codeproject.com/KB/aspnet/swf2img.aspx

     

    If you have solved your issue, please mark the useful reply as answer.

    Best regards,

    Lucy

     


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, February 14, 2011 9:09 AM
  • Hi lucy,

    thanks for your answer.Now i can wirte the text to a bitmap and also can save the bitmap(using OpenCV).

    One problem is .nfo files have  characters from cp437.The ascii value from 0x0-0x7f can be shown normally,

    0x80-0xff cannot be shown normally.Any idea on this problem?

    Monday, February 14, 2011 10:08 AM
  • Hi LeoGaGa,

    Your first question has been answered, i suggest you to write a new post about your second question.

    If you do that , you will get better and quicker responses.

     

    Thank you for your understanding,

     

    Best regards,

    Lucy


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, February 22, 2011 2:52 AM
  • Hi lucky,

    thanks for your reminding,this problem i have solved some days before and use FreeType lib can get the

    shape from some font files, then can draw its shape with opencv.

     

    Tuesday, February 22, 2011 7:25 AM