flat assembler
Message board for the users of flat assembler.
Index
> Tutorials and Examples > How to display raw image in Win32? |
Author |
|
DimonSoft 21 Feb 2021, 09:00
This function might be a good start. The BMP format is just a bit more complicated than your RAW one, but this function just wants you to supply relevant parts of data. I guess, you’ll only need to scale the R, G and B values in the palette since they’re now 0…255.
Painting the bitmap may be performed in many different ways. In fact, if you only want to paint the bitmap and have no intent to use it anywhere else, plain StretchDIBits might be just enough and maybe even too cool. |
|||
21 Feb 2021, 09:00 |
|
FlierMate 02 Mar 2021, 14:02
DimonSoft wrote: This function might be a good start. The BMP format is just a bit more complicated than your RAW one, but this function just wants you to supply relevant parts of data. I guess, you’ll only need to scale the R, G and B values in the palette since they’re now 0…255. Thank you for the CreateDIBitmap and StretchDIBits functions. I might need to spend some time to write code to experiment with these. |
|||
02 Mar 2021, 14:02 |
|
bitRAKE 08 Mar 2021, 06:02
Here is an old example algorithmically generating graphic for Win32.
https://board.flatassembler.net/topic.php?p=71049#71049 |
|||
08 Mar 2021, 06:02 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.