flat assembler
Message board for the users of flat assembler.
Index
> Tutorials and Examples > Simplest way for graphics prototyping with FreshLib |
Author |
|
avcaballero 09 Dec 2016, 11:09
Interesting. What is .canvas and TImage? I guess that you paint on the HDC of the client area.
|
|||
09 Dec 2016, 11:09 |
|
JohnFound 09 Dec 2016, 11:33
.canvas is an argument of the OnPaint event handler, that contains pointer to the canvas TImage of the window that have to be drawn.
TImage is in memory bitmap, defined following way: Code: struct TImage .width dd ? ; width in pixels. .height dd ? ; height in pixels. .pPixels dd ? ; pointer to the pixel memory. ; follows os dependent data ends For the user only the first 3 fields are useful, because the following are OS dependent fields. For example for Linux TImage is defined this way: Source code The .pPixels member of TImage contains pointer to the pixels array. Every pixel is always 32bit ARBG value, using premultiplied alpha. |
|||
09 Dec 2016, 11:33 |
|
JohnFound 09 Dec 2016, 12:18
I have added the missed attachment from the first post.
|
|||
09 Dec 2016, 12:18 |
|
JohnFound 20 Dec 2016, 07:54
This example, with some additional comments has been added to the Fresh IDE examples/ directory in v2.5.1
|
|||
20 Dec 2016, 07:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.