View image picture bmp on dos

Asked By 0 points N/A Posted on -
qa-featured

Hi,

I have a bunch of codes for viewing files using the dos platform but none of them is to view image picture BMP on dos.

Can you share commands to view images on dos?

And if there is a way to resize the pictures or borders, please include them if you have some information.

It will help a lot.

SHARE
Best Answer by Jose K Vincent
Answered By 20 points N/A #145580

View image picture bmp on dos

qa-featured

Viewing image picture BMP on dos is not possible. You could be able to do some black & white; white imagery with ASM, but not with C. Or assuming you mean a real dos as opposed to a console, then here's a link that could help: http://www.brackeen.com/vga/source/bc31/bitmap.c.html.

This program demonstrates drawing bitmaps, including transparent bitmaps.

Best Answer
Best Answer
Answered By 60 points N/A #145582

View image picture bmp on dos

qa-featured

Hello Justin,

Viewing image files in DOS is not possible as DOS does not supports graphics, but if you want to load some bitmap files then some code with C can help you with the same but remember the image size will be less that the screen size.

It will be 8bit image and you cannot get same screen resolution.

I am sharing one code sample that will help you to achieve the same.

Have a look at the code snippet.

Thanks.

Answered By 590495 points N/A #323186

View image picture bmp on dos

qa-featured

The BMP (.bmp) file format is not a DOS file. It cannot be opened with any existing DOS program. This file format is a Windows file and you can only open it within Windows using a program like Microsoft Paint, Adobe Photoshop, and others. You can also view the file within Windows Explorer. This file format is a raster graphics image file format used to store bitmap digital images.

It is an outdated image file format for computers running on Microsoft Windows. Microsoft developed the BMP file format for storing bitmap files in a DIB format or device-independent bitmap format that would permit Windows to display the bitmap on any type of display device.

When you say “device-independent”, it means the bitmap specifies pixel color in a form independent of the method used by the display to represent color. BMP files always contain RGB data which can be any of the following:

  • 1-bit: 2 colors (monochrome)
  • 4-bit: 16 colors
  • 8-bit: 256 colors
  • 24-bit: 16777216 colors, mixes 256 tints of Red with 256 tints of Green and Blue

Related Questions