Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

How do you print an image in mips?

  1. Jun 9, 2015 #1


    User Avatar

    hi guys I have been having a bit of trouble with this one and I am a bit all over the place. I know the things like setting up pointers, 2-d array, reserving stack frame space, having offsets. but is printing an image very different from printing a pixel or printing an integer? Also if I need to show some sort of code for this let me know and I wwill attempt it.

    I'm really a newbie at it, any other helpful resources aimed at printing bitmap images are welcome.
  2. jcsd
  3. Jun 10, 2015 #2


    User Avatar
    Science Advisor

    It depends on your operating system. Windows has all the tools and APIs necessary (but the last time I looked, the basic documentation filled 5 thick books). I do not know about Linux, but I think you want to study the Trolltech libraries. Android - I haven't a clue.
  4. Jun 10, 2015 #3

    Stephen Tashi

    User Avatar
    Science Advisor

    You should explain the goal more clearly. Do you want to print an image only on a particular brand of printer? Or do you want a brand-independent program?

    Glancing at the web, there are various programs that convert bitmap images to Postscript. You could use various programs that handle Postscript to print the images. If your goal is to write a program that handles all the details, you could study HP Printer Command Language. http://en.wikipedia.org/wiki/Printer_Command_Language
  5. Jun 10, 2015 #4


    User Avatar

    hi sorry for not explaining i just want a code a program to output a bitmap image in the console for mips assembly like qtspim. but having diifficulty finding the guidelines to do this.
  6. Jun 10, 2015 #5


    Staff: Mentor

    Yes, it's very different. MIPS is a very low -level programming language that doesn't even have an API that I'm aware of for printing something even as simple as a text file. let alone a bitmap image.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook