PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV Mobile 2024 → How to draw on Image Control in Looper
How to draw on Image Control in Looper
Iniciado por Trancompany, out., 29 2013 10:28 AM - 4 respostas
Membro registado
6 mensagems
Publicado em outubro, 29 2013 - 10:28 AM
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 em outubro, 29 2013 - 1:02 PM
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.
Membro registado
6 mensagems
Publicado em outubro, 30 2013 - 12:57 AM
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
Membro registado
6 mensagems
Publicado em outubro, 30 2013 - 2:58 AM
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
Membro registado
6 mensagems
Publicado em fevereiro, 27 2014 - 4:24 AM
How about using a 3rd party image drawing tool?
http://www.yiigo.com/guides/vbnet/how-to-image-drawing.shtml