How do you print an image in mips?

  • Thread starter Thread starter cjj
  • Start date Start date
  • Tags Tags
    Image Mips
Click For Summary
Printing an image in MIPS assembly is significantly different from printing basic data types like pixels or integers due to the low-level nature of MIPS, which lacks built-in APIs for image handling. The discussion highlights the need for clarity regarding the specific printing goals, such as whether the program should be compatible with various printer brands or focused on a specific one. Resources suggested include exploring Postscript conversion programs and studying HP Printer Command Language for more advanced printing tasks. The user expresses a desire for code examples and guidance on outputting bitmap images in the console using MIPS assembly. Overall, the complexity of printing images in MIPS requires a deeper understanding of both the language and the printing process.
cjj
Messages
2
Reaction score
0
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.
 
Technology news on Phys.org
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.
 
cjj said:
I'm really a newbie at it, any other helpful resources aimed at printing bitmap images are welcome.

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
 
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.
 
cjj said:
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?
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.
cjj said:
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.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 20 ·
Replies
20
Views
32K
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
10K
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
8K