|
How to draw on Image Control in Looper |
Iniciado por Trancompany, 29,oct. 2013 10:28 - 4 respuestas |
| |
| | | |
|
| |
Miembro registrado 6 mensajes |
|
Publicado el 29,octubre 2013 - 10:28 |
Hi Everyone,
WM gives us draw on Image easily such as
dStartDrawing(IMG_Draw) dLine(0,0,100,100,RGB(0,0,0),2) //dEndDrawing(IMG_Draw) // you should comment this line to see drawing result.
But when image control in Looper, i dont find out how to draw on it. 1. Draw directly on Image Control --> Fail. 2. Draw on buffer and use ATT_ to assign to Image Control --> Fail.
Who can give me any advices? Thanks in advantage. |
| |
| |
| | | |
|
| | |
| |
Publicado el 29,octubre 2013 - 13:02 |
Hi
I haven't tried, so it's just an idea...
Draw in a hidden image control (not in the looper) Then copy the image (either directly if it works, or by saving it first on the memory card) in the looper
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
More information on http://www.fabriceharari.com
On 10/29/2013 4:28 AM, Trancompany wrote:
Hi Everyone,
WM gives us draw on Image easily such as
dStartDrawing(IMG_Draw) dLine(0,0,100,100,RGB(0,0,0),2) //dEndDrawing(IMG_Draw) // you should comment this line to see drawing result.
But when image control in Looper, i dont find out how to draw on it. 1. Draw directly on Image Control --> Fail. 2. Draw on buffer and use ATT_ to assign to Image Control --> Fail.
Who can give me any advices? Thanks in advantage. |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 6 mensajes |
|
Publicado el 30,octubre 2013 - 00:57 |
Thanks Harina,
This is method 2 as i mentioned, but i don't try to copy to memory card. Actually, i don't want to do this due to slow performance.
Best Regard,
Trần Đức Mậu - Michael Chan Windev - Vietnam |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 6 mensajes |
|
Publicado el 30,octubre 2013 - 02:58 |
Hi all,
It seem noway to drawing on Image Control in Looper from outside Looper's code.
I just find out the way to draw in "Displaying a raw of Looper_..." like this:
dStartDrawing(IMG_Draw) //IMG_Draw in Looper_... dLine(....)
It's only show draw shape on Initial, anytime i interactive with Looper, my draw shape is disappear.
Just stupid job.
Best Regard,
Trần Đức Mậu - Michael Chan Windev - Vietnam |
| |
| |
| | | |
|
| | |
| |
Miembro registrado 6 mensajes |
|
Publicado el 27,febrero 2014 - 04:24 |
| |
| |
| | | |
|
| | | | |
| | |
|