Skip to content

Latest commit

 

History

History
46 lines (25 loc) · 1.5 KB

README.md

File metadata and controls

46 lines (25 loc) · 1.5 KB

#README#

DISCLAIMER I don't own the rights of the example images; they are taken from Google.


A simple example on how to read a BMP header with Assembly (MASM32), without using external resource (I use only BITMAPINFOHEADER struct). In addition, for more clarity, I would show you how obtain the pixel array and apply some filters.

What can I get from BMPInfo?

With BMPInfo you can get info about the header of the BMP and the DIB header. At this moment BMPInfo support only the basicly info and doesn't support the optional values.

In addition you can find some filters that you can apply on the pixel array obtained from the image.

This are the filters that you can test:

  • GrayScale;
  • Pixel inversion;
  • Contrast

The Contrast filter don't work really correctly; must be fixed (and the filters must be optimized).

IMPORTANT! please, make sure that your input image is at the same directory of the exe.

##Screenshots##

I must upload screnshot like PNGs because BMP is not supported here.

The application

window.png

Original Image, without filter

tiger.png

Grayscale filter

output.png

Inversion filter

output.png

Contrast filter

output.png