How do you print an image in mips?

  • Thread starter Thread starter cjj
  • Start date Start date
  • Tags Tags
    Image Mips
Click For Summary

Discussion Overview

The discussion centers around the challenges of printing bitmap images using MIPS assembly language, particularly in the context of console output in environments like QtSPIM. Participants explore the technical requirements and resources needed for this task.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant expresses confusion about the differences between printing an image, a pixel, and an integer in MIPS, indicating a lack of clarity on the subject.
  • Another participant notes that the approach to printing an image depends on the operating system, mentioning that Windows has extensive documentation and tools, while Linux may require studying specific libraries.
  • A suggestion is made to clarify whether the goal is to print on a specific brand of printer or to create a brand-independent program, with references to converting bitmap images to Postscript as a potential solution.
  • One participant specifically requests code to output a bitmap image in the console using MIPS assembly, highlighting difficulties in finding guidelines for this task.
  • A later reply emphasizes that printing in MIPS is fundamentally different from higher-level programming, noting the absence of an API for printing even basic text files, let alone bitmap images.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and approaches to the problem, with no consensus on a specific method or solution for printing bitmap images in MIPS assembly.

Contextual Notes

Limitations include the lack of clear guidelines for printing images in MIPS, the dependency on operating system capabilities, and the absence of a standardized API for such tasks in low-level programming.

Who May Find This Useful

Individuals interested in low-level programming, specifically in MIPS assembly language, as well as those exploring image processing and printing in various operating systems.

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.
 

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
33K
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
11K
Replies
2
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
8K