Rev 2388 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2388 | Rev 2733 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | .pgm: |
1 | .pgm: |
2 | stdcall img.create, [width], [height], Image.bpp8 |
2 | stdcall img.create, [width], [height], Image.bpp8g |
3 | test eax, eax |
3 | test eax, eax |
4 | jz .quit |
4 | jz .quit |
5 | mov [retvalue], eax |
5 | mov [retvalue], eax |
6 | mov ebx, eax |
6 | mov ebx, eax |
Line 7... | Line -... | ||
7 | - | ||
8 | mov edi, [ebx+Image.Palette] |
- | |
9 | mov eax, 0xff000000 |
- | |
10 | @@: |
- | |
11 | stosd |
- | |
12 | add eax, 0x00010101 |
- | |
13 | jnc @b |
- | |
14 | 7 | ||
15 | mov edi, [ebx+Image.Data] |
8 | mov edi, [ebx+Image.Data] |
16 | mov ecx, [ebx+Image.Width] |
9 | mov ecx, [ebx+Image.Width] |
Line 17... | Line 10... | ||
17 | imul ecx, [ebx+Image.Height] |
10 | imul ecx, [ebx+Image.Height] |